Log message for revision 41184:
  deprecated StructuredText module
  

Changed:
  U   Zope/trunk/doc/CHANGES.txt
  U   Zope/trunk/lib/python/StructuredText/__init__.py

-=-
Modified: Zope/trunk/doc/CHANGES.txt
===================================================================
--- Zope/trunk/doc/CHANGES.txt  2006-01-07 12:14:45 UTC (rev 41183)
+++ Zope/trunk/doc/CHANGES.txt  2006-01-07 14:10:26 UTC (rev 41184)
@@ -26,6 +26,9 @@
 
     Features added
 
+      - the 'StructuredText' module is deprecated. Use zope.structuredtext
+        instead
+
       - removed ZopeTutorial (Elvis is now really dead)
 
       - ZClasses are deprecated and should no longer be used.

Modified: Zope/trunk/lib/python/StructuredText/__init__.py
===================================================================
--- Zope/trunk/lib/python/StructuredText/__init__.py    2006-01-07 12:14:45 UTC 
(rev 41183)
+++ Zope/trunk/lib/python/StructuredText/__init__.py    2006-01-07 14:10:26 UTC 
(rev 41184)
@@ -11,6 +11,13 @@
 #
 ##############################################################################
 
+
+import warnings
+warnings.warn('Using StructuredText is deprecated (will be removed in Zope '
+              '2.12). Instead use zope.structuredtext.', 
+              DeprecationWarning,
+              stacklevel=2) 
+
 import HTMLClass, DocumentClass
 import ClassicDocumentClass
 from StructuredText import html_with_references, HTML, html_quote

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to