[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/component/contentdirective.py Wrong deprecation date for the localUtility directive.

Florent Xicluna laxyf at yahoo.fr
Mon Sep 18 03:20:03 EDT 2006


Log message for revision 70216:
  Wrong deprecation date for the localUtility directive.

Changed:
  U   Zope3/trunk/src/zope/app/component/contentdirective.py

-=-
Modified: Zope3/trunk/src/zope/app/component/contentdirective.py
===================================================================
--- Zope3/trunk/src/zope/app/component/contentdirective.py	2006-09-17 23:41:50 UTC (rev 70215)
+++ Zope3/trunk/src/zope/app/component/contentdirective.py	2006-09-18 07:20:01 UTC (rev 70216)
@@ -192,13 +192,16 @@
 
 # BBB 2006/09/17, to be removed after 12 months
 class LocalUtilityDirective(ClassDirective):
-    r""" *BBB: DEPRECATED*
+    r"""*BBB: DEPRECATED*
 
-    The ``localUtility`` alias for the ``class`` directive has been
-    deprecated and will be removed in Zope 3.5.
+    The ``localUtility`` directive has been deprecated
+    and will be removed after 09/2007.
 
-    Examples:
+    Use ``class`` directive with additional subdirective
+    ``<implements interface="zope.annotation.interfaces.IAttributeAnnotatable" />``
 
+    Deprecated examples:
+
       >>> from zope.interface import implements
       >>> class LU1(object):
       ...     pass
@@ -243,8 +246,9 @@
                                      '`IPersistent`.' % class_.__name__)
 
         warnings.warn_explicit(
-            "The 'localUtility' alias for the 'class' directive has been "
-            "deprecated and will be removed in Zope 3.5.\n",
+            "The 'localUtility' directive has been deprecated. It will "
+            "be removed after 09/2007.\n"
+            "Use 'class' directive + implements(IAttributeAnnotatable).\n",
             DeprecationWarning, _context.info.file, _context.info.line)
         classImplements(class_, IAttributeAnnotatable)
         super(LocalUtilityDirective, self).__init__(_context, class_)



More information about the Zope3-Checkins mailing list