[Checkins] SVN: CMF/branches/1.6/CMFCore/CatalogTool.py Add a
deprecation warning for CatalogTool._initIndexes;
it is no longer supported on trunk. GenericSetup should be used
instead.
Wichert Akkerman
wichert at wiggy.net
Mon Apr 24 13:57:50 EDT 2006
Log message for revision 67573:
Add a deprecation warning for CatalogTool._initIndexes; it is no longer supported on trunk. GenericSetup should be used instead.
Changed:
U CMF/branches/1.6/CMFCore/CatalogTool.py
-=-
Modified: CMF/branches/1.6/CMFCore/CatalogTool.py
===================================================================
--- CMF/branches/1.6/CMFCore/CatalogTool.py 2006-04-24 17:35:03 UTC (rev 67572)
+++ CMF/branches/1.6/CMFCore/CatalogTool.py 2006-04-24 17:57:50 UTC (rev 67573)
@@ -15,6 +15,8 @@
$Id$
"""
+from warnings import warn
+
from AccessControl import ClassSecurityInfo
from AccessControl.PermissionRole import rolesForPermissionOn
from DateTime import DateTime
@@ -121,6 +123,9 @@
def __init__(self):
ZCatalog.__init__(self, self.getId())
+ warn('CatalogTool._initIndexes is deprecated and will be removed in '
+ 'CMF 2.0.',
+ DeprecationWarning)
self._initIndexes()
#
More information about the Checkins
mailing list