[Checkins] SVN: Products.ZCatalog/trunk/src/Products/ZCatalog/Catalog.py revert last change

Hano Schlichting cvs-admin at zope.org
Sun Apr 8 13:41:07 UTC 2012


Log message for revision 125102:
  revert last change
  

Changed:
  U   Products.ZCatalog/trunk/src/Products/ZCatalog/Catalog.py

-=-
Modified: Products.ZCatalog/trunk/src/Products/ZCatalog/Catalog.py
===================================================================
--- Products.ZCatalog/trunk/src/Products/ZCatalog/Catalog.py	2012-04-08 13:37:26 UTC (rev 125101)
+++ Products.ZCatalog/trunk/src/Products/ZCatalog/Catalog.py	2012-04-08 13:41:04 UTC (rev 125102)
@@ -782,7 +782,7 @@
             sequence, slen = self._limit_sequence(result, length, b_start,
                 b_size, switched_reverse)
             result = LazyCat(LazyValues(sequence), slen, actual_result_count)
-        elif limit is None:
+        elif limit is None or (limit * 4 > rlen):
             # Iterate over the result set getting sort keys from the index
             if sort_index_length == 1:
                 for did in rs:



More information about the checkins mailing list