Random ...
May 2018
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Tags ...

python+zope++:: Migrating to Zope 2.8: testing phase
Posted at 30.Jun,2005 12:52  Comments 5 / Trackbacks 0 / Like this post!
Technorati tag(s):

Now that Zope-2.8.0 has landed for about a month, I figured it's high time I test out my sites for the move.

I chose the sites on zope 2.7.3, rather than zope2.6.x, for these reasons:

  • it should be easier migrating from one level down
  • the sites has no old products
  • are on a relatively new OS

Steps taken:

  • install python-2.3.5 in a diferent location, just in case the move doesn't work
  • install all necessary python dependencies (psycopg, mxBase, etc)
  • install zope, and the zope instance. also in a different location
  • copied all Products from live zope instance to new zope2.8 instance
  • copied Data.fs
  • edited zope.conf, enable debug mode, run on a different port (not 8080), etc
  • exec runzope, instead of zopectl start
  • looked at errors, fix errors, repeat
  • zope starts ok, go to ZMI, check all (well, most) objects

Encountered errors for all ZCatalog instances. That's bad. I know that there are major changes in (Z)Catalog as documented in CHANGES.txt

CHANGES.txt said that ZCatalog instance will be migrated automatically. Not so. Need to manually migrate all ZCatalog instances.

Here's how I did it:

  • create a file, "migrate.py", and save it in zope_instance/Extensions
        def migrate(self, catalogid):
    #call the __len__ method.
            return str(r) + turl
  • call the external method. In my case, the External method is called migrate, so enter this:
  • go to said catalog, "Advance", clear catalog
  • go to Find Objects, and find your objects

You should be good. Or not. If you have Date(Range)Index, this would not work. I haven't yet checked why. What's the difference between other indexes and Date(Range)Index?

The traceback:

  2005-06-30 12:43:44 ERROR Zope.SiteErrorLog
  Traceback (most recent call last):
  File "/usr/local/zope2.8/lib/python/ZPublisher/Publish.py", line 113, in publish
    request, bind=1)
  File "/usr/local/zope2.8/lib/python/ZPublisher/mapply.py", line 88, in mapply
    if debug is not None: return debug(object,args,context)
  File "/usr/local/zope2.8/lib/python/ZPublisher/Publish.py", line 40, in call_object
    result=apply(object,args) # Type s to step into published object.
  File "/usr/local/zope2.8/lib/python/Products/ZCatalog/ZCatalog.py", line 309, in manage_catalogClear
  File "/usr/local/zope2.8/lib/python/Products/ZCatalog/Catalog.py", line 109, in clear
  File "/usr/local/zope2.8/lib/python/Products/PluginIndexes/DateIndex/DateIndex.py", line 106, in clear
AttributeError: _length

More to come once I move this to the live sites.

Bookmark and Share

Is this entry helpful? Comments/Donate/Click some google ads.  
Trackback is http://myzope.kedai.com.my/blogs/kedai/32/tbping 

dag nabbit!

got this

pre {
overflow: auto;

but nothing happened? any hints? css gurus?

kedai  at 30.Jun,2005 13:09
Re: Migrating to Zope 2.8: testing phase

re: dag nabbit!

works for me (Firfox 1.0.4 win2k)

d2m  at 30.Jun,2005 14:52
Re: Migrating to Zope 2.8: testing phase

it does? i should've tested with other browsers :P.

but konqueror renders that overflow ok for other sites

kedai  at 30.Jun,2005 17:18
Re: Migrating to Zope 2.8: testing phase

The CHANGES.txt states *clearly* that all catalogs have to be migrated *manually* through manage_convertIndexes. This is also definitely explain in doc/FAQ.txt.

Andreas Jung  at 10.Jul,2005 00:37
Re: Migrating to Zope 2.8: testing phase

my bad

just one bullet point down and i'd seen it. I'll test this out and report soon.


kedai  at 10.Jul,2005 11:23
Post a comment