Commit b368a027 authored by Andreas Jung's avatar Andreas Jung

added comment to weird code

parent 5b356795
...@@ -491,6 +491,8 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base): ...@@ -491,6 +491,8 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base):
elif rs: elif rs:
# We got some results from the indexes. # We got some results from the indexes.
# Sort and convert to sequences. # 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'): if sort_index is None and hasattr(rs, 'values'):
# having a 'values' means we have a data structure with # having a 'values' means we have a data structure with
# scores. Build a new result set, sort it by score, reverse # scores. Build a new result set, sort it by score, reverse
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment