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. c=getattr(self,catalogid) turl=c.absolute_url() r=c.__len__() return str(r) + turl - call the external method. In my case, the External method is called migrate, so enter this:
http://555.555.555.555:65535/some/path/Catalog/migrate?catalogid=Catalog
- 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 http://10.11.1.2:8081/somepath/Catalog/manage_catalogClear
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
self._catalog.clear()
File "/usr/local/zope2.8/lib/python/Products/ZCatalog/Catalog.py", line 109, in clear
self.getIndex(index).clear()
File "/usr/local/zope2.8/lib/python/Products/PluginIndexes/DateIndex/DateIndex.py", line 106, in clear
self._length.set(0)
AttributeError: _length
More to come once I move this to the live sites.
Trackback is http://myzope.kedai.com.my/blogs/kedai/32/tbping
got this
pre {
.....
overflow: auto;
}
but nothing happened? any hints? css gurus?
re: dag nabbit!
works for me (Firfox 1.0.4 win2k)
it does? i should've tested with other browsers :P.
but konqueror renders that overflow ok for other sites
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.
my bad
just one bullet point down and i'd seen it. I'll test this out and report soon.
thanks
