[Zope-Checkins] SVN: Zope/trunk/ deprecated TextIndex

Andreas Jung andreas at andreas-jung.com
Sat Jan 7 11:37:36 EST 2006


Log message for revision 41187:
  deprecated TextIndex
  

Changed:
  U   Zope/trunk/doc/CHANGES.txt
  U   Zope/trunk/lib/python/Products/PluginIndexes/TextIndex/__init__.py

-=-
Modified: Zope/trunk/doc/CHANGES.txt
===================================================================
--- Zope/trunk/doc/CHANGES.txt	2006-01-07 14:57:15 UTC (rev 41186)
+++ Zope/trunk/doc/CHANGES.txt	2006-01-07 16:37:35 UTC (rev 41187)
@@ -26,6 +26,8 @@
 
     Features added
 
+      - PluginIndexes/TextIndex is deprecated. Use ZCTextIndex instead
+
       - the 'StructuredText' module is deprecated. Use zope.structuredtext
         instead
 

Modified: Zope/trunk/lib/python/Products/PluginIndexes/TextIndex/__init__.py
===================================================================
--- Zope/trunk/lib/python/Products/PluginIndexes/TextIndex/__init__.py	2006-01-07 14:57:15 UTC (rev 41186)
+++ Zope/trunk/lib/python/Products/PluginIndexes/TextIndex/__init__.py	2006-01-07 16:37:35 UTC (rev 41187)
@@ -1 +1,7 @@
 # empty comment for winzip and friends
+
+import warnings
+warnings.warn('Using TextIndex is deprecated (will be removed in Zope '
+              '2.12). Use ZCTextIndex instead.',
+              DeprecationWarning,
+              stacklevel=2) 



More information about the Zope-Checkins mailing list