[CMF-checkins] SVN: CMF/branches/1.6/CMFCore/CatalogTool.py
Suppress known deprecation warning in test output.
Tres Seaver
tseaver at palladion.com
Tue Apr 24 16:19:37 EDT 2007
Log message for revision 74720:
Suppress known deprecation warning in test output.
Changed:
U CMF/branches/1.6/CMFCore/CatalogTool.py
-=-
Modified: CMF/branches/1.6/CMFCore/CatalogTool.py
===================================================================
--- CMF/branches/1.6/CMFCore/CatalogTool.py 2007-04-24 20:13:48 UTC (rev 74719)
+++ CMF/branches/1.6/CMFCore/CatalogTool.py 2007-04-24 20:19:37 UTC (rev 74720)
@@ -134,10 +134,7 @@
def __init__(self):
ZCatalog.__init__(self, self.getId())
- warn('CatalogTool._initIndexes is deprecated and will be removed in '
- 'CMF 2.0.',
- DeprecationWarning)
- self._initIndexes()
+ self._initIndexes(internal_cmf_16=True)
#
# Subclass extension interface
@@ -216,7 +213,11 @@
, 'portal_type'
)
- def _initIndexes(self):
+ def _initIndexes(self, internal_cmf_16=False):
+ if not internal_cmf_16:
+ warn('CatalogTool._initIndexes is deprecated and will be '
+ 'removed in CMF 2.0.', DeprecationWarning)
+
# ZCTextIndex lexicons
for id, splitter, normalizer, sw_remover in self.enumerateLexicons():
lexicon = PLexicon(id, '', splitter, normalizer, sw_remover)
More information about the CMF-checkins
mailing list