[Checkins] SVN: Zope/trunk/ Removed catalog length migration code. Direct upgrades from Zope 2.7 and earlier are no longer supported.
Hanno Schlichting
hanno at hannosch.eu
Sun Aug 1 09:17:44 EDT 2010
On Sun, Aug 1, 2010 at 3:01 PM, Wichert Akkerman <wichert at wiggy.net> wrote:
> On 8/1/10 14:52 , Hanno Schlichting wrote:
>> Log message for revision 115322:
>> Removed catalog length migration code. Direct upgrades from Zope 2.7 and earlier are no longer supported.
>
> Shouldn't that be 2.8 and earlier? This bit suggests that:
>
>> - def migrate__len__(self):
>> - """ migration of old __len__ magic for Zope 2.8 """
>> - if not hasattr(self, '_length'):
>> - n = self.__dict__['__len__']()
>> - del self.__dict__['__len__']
>> - self._length = BTrees.Length.Length(n)
That code was added in Zope 2.8. So if your database was already
upgraded to use Zope 2.8, you are fine. See
http://svn.zope.org/Zope/branches/Zope-2_8-branch/lib/python/Products/ZCatalog/Catalog.py?rev=37949&view=log
Hanno
More information about the checkins
mailing list