Skip to content

Commit

Permalink
explain nicety
Browse files Browse the repository at this point in the history
  • Loading branch information
hannosch committed Apr 7, 2012
1 parent 7e3d42f commit 00bbe19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Products/ZCatalog/Catalog.py
Expand Up @@ -903,6 +903,9 @@ def _getSortIndex(self, args):
if len(sort_indexes) > 2:
raise CatalogError('Two sort indexes are supported at max, '
'got: %s' %repr(name))
if len(sort_indexes) == 1:
# be nice and keep the old API intact for single sort_on's
return sort_indexes[0]
return sort_indexes
return None

Expand Down

0 comments on commit 00bbe19

Please sign in to comment.