[Checkins] SVN: Products.ZCatalog/trunk/src/Products/PluginIndexes/common/UnIndex.py Remove outdated comment and avoid creating Length() which is done again in the clear method
Hanno Schlichting
hannosch at hannosch.eu
Tue May 17 08:33:54 EDT 2011
Log message for revision 121685:
Remove outdated comment and avoid creating Length() which is done again in the clear method
Changed:
U Products.ZCatalog/trunk/src/Products/PluginIndexes/common/UnIndex.py
-=-
Modified: Products.ZCatalog/trunk/src/Products/PluginIndexes/common/UnIndex.py
===================================================================
--- Products.ZCatalog/trunk/src/Products/PluginIndexes/common/UnIndex.py 2011-05-17 12:12:23 UTC (rev 121684)
+++ Products.ZCatalog/trunk/src/Products/PluginIndexes/common/UnIndex.py 2011-05-17 12:33:54 UTC (rev 121685)
@@ -58,10 +58,6 @@
self._index = {datum:[documentId1, documentId2]}
self._unindex = {documentId:datum}
- If any item in self._index has a length-one value, the value is an
- integer, and not a set. There are special cases in the code to deal
- with this.
-
The arguments are:
'id' -- the name of the item attribute to index. This is
@@ -110,7 +106,6 @@
if not self.indexed_attrs:
self.indexed_attrs = [id]
- self._length = Length()
self.clear()
def __len__(self):
More information about the checkins
mailing list