[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope-cvs
Subject:    [Zope-Checkins]
From:       Martijn Pieters <mj () zopatista ! com>
Date:       2005-11-30 12:47:07
Message-ID: 20051130124707.A94C72033D8 () mail ! zope ! org
[Download RAW message or body]

Log message for revision 40428:
  Merge r 40426 from the trunk: make DateIndexes upgradeble from Zope 2.7 by way
  of a re-index.
  

Changed:
  U   Zope/branches/2.9/lib/python/Products/PluginIndexes/DateIndex/DateIndex.py

-=-
Modified: Zope/branches/2.9/lib/python/Products/PluginIndexes/DateIndex/DateIndex.py
===================================================================
--- Zope/branches/2.9/lib/python/Products/PluginIndexes/DateIndex/DateIndex.py	2005-11-30 \
                12:32:05 UTC (rev 40427)
+++ Zope/branches/2.9/lib/python/Products/PluginIndexes/DateIndex/DateIndex.py	2005-11-30 \
12:47:07 UTC (rev 40428) @@ -20,6 +20,7 @@
 from datetime import tzinfo, timedelta
 from types import StringType, FloatType, IntType
 
+import BTrees.Length
 from BTrees.IIBTree import IISet, union, intersection, multiunion
 from BTrees.IOBTree import IOBTree
 from BTrees.OIBTree import OIBTree
@@ -111,7 +112,7 @@
         """ Complete reset """
         self._index = IOBTree()
         self._unindex = OIBTree()
-        self._length.set(0)
+        self._length = BTrees.Length.Length()
 
     def index_object( self, documentId, obj, threshold=None ):
         """index an object, normalizing the indexed value to an integer

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic