[Checkins] SVN: Products.ZCatalog/trunk/ Fixed BooleanIndex' items method so the ZMI browse view works.

Hanno Schlichting hannosch at hannosch.eu
Thu May 19 05:27:59 EDT 2011


Log message for revision 121737:
  Fixed BooleanIndex' items method so the ZMI browse view works.
  

Changed:
  U   Products.ZCatalog/trunk/CHANGES.txt
  U   Products.ZCatalog/trunk/src/Products/PluginIndexes/BooleanIndex/BooleanIndex.py

-=-
Modified: Products.ZCatalog/trunk/CHANGES.txt
===================================================================
--- Products.ZCatalog/trunk/CHANGES.txt	2011-05-19 08:27:01 UTC (rev 121736)
+++ Products.ZCatalog/trunk/CHANGES.txt	2011-05-19 09:27:59 UTC (rev 121737)
@@ -4,6 +4,7 @@
 2.13.15 (unreleased)
 --------------------
 
+- Fixed BooleanIndex' items method so the ZMI browse view works.
 
 2.13.14 (2011-05-19)
 --------------------

Modified: Products.ZCatalog/trunk/src/Products/PluginIndexes/BooleanIndex/BooleanIndex.py
===================================================================
--- Products.ZCatalog/trunk/src/Products/PluginIndexes/BooleanIndex/BooleanIndex.py	2011-05-19 08:27:01 UTC (rev 121736)
+++ Products.ZCatalog/trunk/src/Products/PluginIndexes/BooleanIndex/BooleanIndex.py	2011-05-19 09:27:59 UTC (rev 121737)
@@ -237,7 +237,7 @@
     def items(self):
         # return a list of value to int set of rid tuples
         indexed = self._index_value
-        items = [(bool(indexed), self._index.keys())]
+        items = [(bool(indexed), self._index)]
         false = IISet()
         for rid, value in self._unindex.iteritems():
             if value != indexed:



More information about the checkins mailing list