-----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-----


_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to