Commit 6ac74a5d authored by Hanno Schlichting's avatar Hanno Schlichting

keyForDocument was replaced by documentToKeyMap.

parent b9e42f6a
...@@ -756,10 +756,10 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base): ...@@ -756,10 +756,10 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base):
if sort_index is None: if sort_index is None:
raise CatalogError, 'Unknown sort_on index (%s)' % sort_index_name raise CatalogError, 'Unknown sort_on index (%s)' % sort_index_name
else: else:
if not hasattr(sort_index, 'keyForDocument'): if not hasattr(sort_index, 'documentToKeyMap'):
raise CatalogError( raise CatalogError(
'The index chosen for sort_on (%s) is not capable of being' 'The index chosen for sort_on (%s) is not capable of '
' used as a sort index.' % sort_index_name 'being used as a sort index.' % sort_index_name
) )
return sort_index return sort_index
else: else:
......
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