[Zope-Checkins] CVS: Products/PluginIndexes/DateIndex -
DateIndex.py:1.12.2.4
Andreas Jung
andreas at andreas-jung.com
Fri Mar 18 10:31:32 EST 2005
Update of /cvs-repository/Products/PluginIndexes/DateIndex
In directory cvs.zope.org:/tmp/cvs-serv2338/lib/python/Products/PluginIndexes/DateIndex
Modified Files:
Tag: Zope-2_7-branch
DateIndex.py
Log Message:
- DateIndex/DateRangeIndexes did not reset their __len__ attribute
properly when cleared
=== Products/PluginIndexes/DateIndex/DateIndex.py 1.12.2.3 => 1.12.2.4 ===
--- Products/PluginIndexes/DateIndex/DateIndex.py:1.12.2.3 Thu Feb 5 12:49:01 2004
+++ Products/PluginIndexes/DateIndex/DateIndex.py Fri Mar 18 10:31:01 2005
@@ -96,6 +96,8 @@
def clear( self ):
""" Complete reset """
+ try: self.__len__.set(0)
+ except AttributeError: self.__len__=BTrees.Length.Length()
self._index = IOBTree()
self._unindex = OIBTree()
More information about the Zope-Checkins
mailing list