[Zope-Checkins] SVN: Zope/trunk/src/Products/ZCatalog/Catalog.py keyForDocument was replaced by documentToKeyMap.
Hanno Schlichting
hannosch at hannosch.eu
Sun Jul 25 06:33:13 EDT 2010
Log message for revision 115070:
keyForDocument was replaced by documentToKeyMap.
Changed:
U Zope/trunk/src/Products/ZCatalog/Catalog.py
-=-
Modified: Zope/trunk/src/Products/ZCatalog/Catalog.py
===================================================================
--- Zope/trunk/src/Products/ZCatalog/Catalog.py 2010-07-25 10:30:21 UTC (rev 115069)
+++ Zope/trunk/src/Products/ZCatalog/Catalog.py 2010-07-25 10:33:12 UTC (rev 115070)
@@ -756,10 +756,10 @@
if sort_index is None:
raise CatalogError, 'Unknown sort_on index (%s)' % sort_index_name
else:
- if not hasattr(sort_index, 'keyForDocument'):
+ if not hasattr(sort_index, 'documentToKeyMap'):
raise CatalogError(
- 'The index chosen for sort_on (%s) is not capable of being'
- ' used as a sort index.' % sort_index_name
+ 'The index chosen for sort_on (%s) is not capable of '
+ 'being used as a sort index.' % sort_index_name
)
return sort_index
else:
More information about the Zope-Checkins
mailing list