Log message for revision 39804: added comment to weird code Changed: U Zope/trunk/lib/python/Products/ZCatalog/Catalog.py
-=- Modified: Zope/trunk/lib/python/Products/ZCatalog/Catalog.py =================================================================== --- Zope/trunk/lib/python/Products/ZCatalog/Catalog.py 2005-11-01 03:24:00 UTC (rev 39803) +++ Zope/trunk/lib/python/Products/ZCatalog/Catalog.py 2005-11-01 10:18:52 UTC (rev 39804) @@ -491,6 +491,8 @@ elif rs: # We got some results from the indexes. # Sort and convert to sequences. + # XXX: The check for 'values' is really stupid since we call + # items() and *not* values() if sort_index is None and hasattr(rs, 'values'): # having a 'values' means we have a data structure with # scores. Build a new result set, sort it by score, reverse _______________________________________________ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins