SquishDot exposes issue with ZCatalog/Catalog.clear() in Zope 2.8.0
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 If you attempt to import a SquishDot site that was exported from an older version of Zope (in my case, Zope 2.6.4) into Zope 2.8.0, you get an exception raised in Products.ZCatalog.Catalog.py at line 106 because self has no _length attribute. In other sections of code in Catalog.py, there's this chunk of code present: ~ if not hasattr(self, '_length'): ~ self.migrate__len__() It seems that this chunk of code should also be inserted before the reference to self._length in the clear() method. I did so, and it solved my issue with importing SquishDot sites. This bug in Catalog.clear() is also in Zope 2.8.1. - - Stephen - -- Stephen Bartlett President, Bartlett Software, Inc. http://www.bartlettsoftware.biz/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFDAPIrR7d3GIt7UjgRAnHeAJ9N5mw/EfzCCwYThGnBfuUd2YpG1ACfYOes wCbRIJ/bvV6z+xt1QT9gV78= =Kir0 -----END PGP SIGNATURE-----
On Mon, 15 Aug 2005 21:51:08 +0200, Stephen Bartlett <stephen@bartlettsoftware.biz> wrote:
If you attempt to import a SquishDot site that was exported from an older version of Zope (in my case, Zope 2.6.4) into Zope 2.8.0, you get an exception raised in Products.ZCatalog.Catalog.py at line 106 because self has no _length attribute. In other sections of code in Catalog.py, there's this chunk of code present:
~ if not hasattr(self, '_length'): ~ self.migrate__len__()
It seems that this chunk of code should also be inserted before the reference to self._length in the clear() method. I did so, and it solved my issue with importing SquishDot sites.
This bug in Catalog.clear() is also in Zope 2.8.1.
This also causes issues when upgrading Plone sites, and counts for about half the migration error reports we get with Plone 2.1 at the moment. :) -- _____________________________________________________________________ Alexander Limi · Chief Architect · Plone Solutions · Norway Consulting · Training · Development · http://www.plonesolutions.com _____________________________________________________________________ Plone Co-Founder · http://plone.org · Connecting Content Plone Foundation · http://plone.org/foundation · Protecting Plone
--On 15. August 2005 23:40:16 +0200 Alexander Limi <limi@plone.org> wrote:
This also causes issues when upgrading Plone sites, and counts for about half the migration error reports we get with Plone 2.1 at the moment. :)
Nice comment...but you guys could have filled a bug report for this or brought this up on the Zope-dev list since ages. Sorry, but we can fix only issues we know about...so avoid ambiguous smilies..if you complain about unfixed issues -> report them first. -aj
On Tue, 16 Aug 2005 06:59:33 +0200, Andreas Jung <lists@andreas-jung.com> wrote:
This also causes issues when upgrading Plone sites, and counts for about half the migration error reports we get with Plone 2.1 at the moment. :)
Nice comment...but you guys could have filled a bug report for this or brought this up on the Zope-dev list since ages. Sorry, but we can fix only issues we know about...so avoid ambiguous smilies..if you complain about unfixed issues -> report them first.
We discovered the issue yesterday, calm down. -- _____________________________________________________________________ Alexander Limi · Chief Architect · Plone Solutions · Norway Consulting · Training · Development · http://www.plonesolutions.com _____________________________________________________________________ Plone Co-Founder · http://plone.org · Connecting Content Plone Foundation · http://plone.org/foundation · Protecting Plone
--On 15. August 2005 09:51:08 -1000 Stephen Bartlett <stephen@bartlettsoftware.biz> wrote:
This bug in Catalog.clear() is also in Zope 2.8.1.
I fixed this problem on the 2.8 branch and SVN trunk. Grab Catalog.py from there. -aj
participants (3)
-
Alexander Limi -
Andreas Jung -
Stephen Bartlett