[Checkins] SVN: zope.app.component/trunk/ Please, don't just remove things that could be used in users code.

Dan Korostelev nadako at gmail.com
Thu Feb 5 13:22:20 EST 2009


Log message for revision 96156:
  Please, don't just remove things that could be used in users code.

Changed:
  U   zope.app.component/trunk/CHANGES.txt
  U   zope.app.component/trunk/src/zope/app/component/metadirectives.py

-=-
Modified: zope.app.component/trunk/CHANGES.txt
===================================================================
--- zope.app.component/trunk/CHANGES.txt	2009-02-05 18:07:51 UTC (rev 96155)
+++ zope.app.component/trunk/CHANGES.txt	2009-02-05 18:22:19 UTC (rev 96156)
@@ -5,7 +5,9 @@
 3.6.1 (unreleased)
 ------------------
 
-- ...
+- Make ``class`` directive schemas importable from old location,
+  raising a deprecation warning. It was moved in the previous release,
+  but some custom directives could possibly use its schemas. 
 
 3.6.0 (2009-01-31)
 ------------------

Modified: zope.app.component/trunk/src/zope/app/component/metadirectives.py
===================================================================
--- zope.app.component/trunk/src/zope/app/component/metadirectives.py	2009-02-05 18:07:51 UTC (rev 96155)
+++ zope.app.component/trunk/src/zope/app/component/metadirectives.py	2009-02-05 18:22:19 UTC (rev 96156)
@@ -18,6 +18,7 @@
 __docformat__ = 'restructuredtext'
 
 import zope.configuration.fields
+import zope.deferredimport
 import zope.security.zcml
 import zope.interface
 import zope.schema
@@ -25,6 +26,21 @@
 
 from zope.app.component.i18n import ZopeMessageFactory as _
 
+# BBB
+zope.deferredimport.deprecatedFrom(
+    "Schemas for the ``class`` directive and its subdirectives are now "
+    "moved to zope.security.metadirectives. Imports from here are "
+    "deprecated and will be removed in Zope 3.6",
+
+    'zope.security.metadirectives',
+
+    'IClassDirective',
+    'IImplementsSubdirective',
+    'IRequireSubdirective',
+    'IAllowSubdirective',
+    'IFactorySubdirective',
+)
+
 class IDefaultViewName(zope.interface.Interface):
     """A string that contains the default view name
 



More information about the Checkins mailing list