[Checkins] SVN: Products.ZCatalog/trunk/ Fixed the `DateIndex._unindex` to be of type `IIBTree` instead of `OIBTree`. It stores document ids as keys, which can only be ints.
Hanno Schlichting
hannosch at hannosch.eu
Tue Feb 15 14:12:25 EST 2011
Log message for revision 120354:
Fixed the `DateIndex._unindex` to be of type `IIBTree` instead of `OIBTree`. It stores document ids as keys, which can only be ints.
Changed:
U Products.ZCatalog/trunk/CHANGES.txt
U Products.ZCatalog/trunk/src/Products/PluginIndexes/DateIndex/DateIndex.py
-=-
Modified: Products.ZCatalog/trunk/CHANGES.txt
===================================================================
--- Products.ZCatalog/trunk/CHANGES.txt 2011-02-15 18:55:54 UTC (rev 120353)
+++ Products.ZCatalog/trunk/CHANGES.txt 2011-02-15 19:12:25 UTC (rev 120354)
@@ -4,6 +4,8 @@
2.13.7 (unreleased)
-------------------
+- Fixed the `DateIndex._unindex` to be of type `IIBTree` instead of `OIBTree`.
+ It stores document ids as keys, which can only be ints.
2.13.6 (2011-02-10)
-------------------
Modified: Products.ZCatalog/trunk/src/Products/PluginIndexes/DateIndex/DateIndex.py
===================================================================
--- Products.ZCatalog/trunk/src/Products/PluginIndexes/DateIndex/DateIndex.py 2011-02-15 18:55:54 UTC (rev 120353)
+++ Products.ZCatalog/trunk/src/Products/PluginIndexes/DateIndex/DateIndex.py 2011-02-15 19:12:25 UTC (rev 120354)
@@ -19,13 +19,13 @@
from datetime import tzinfo, timedelta
from App.special_dtml import DTMLFile
+from BTrees.IIBTree import IIBTree
from BTrees.IIBTree import IISet
from BTrees.IIBTree import union
from BTrees.IIBTree import intersection
from BTrees.IIBTree import multiunion
from BTrees.IOBTree import IOBTree
from BTrees.Length import Length
-from BTrees.OIBTree import OIBTree
from DateTime.DateTime import DateTime
from OFS.PropertyManager import PropertyManager
from ZODB.POSException import ConflictError
@@ -112,7 +112,7 @@
def clear( self ):
""" Complete reset """
self._index = IOBTree()
- self._unindex = OIBTree()
+ self._unindex = IIBTree()
self._length = Length()
def index_object( self, documentId, obj, threshold=None ):
More information about the checkins
mailing list