[Zope-Checkins] SVN: Zope/branches/hannosch-dtml-vs-accesscontrol/src/AccessControl/DTML.py Properly deprecate this API, it's used outside
Hanno Schlichting
hannosch at hannosch.eu
Sun May 16 15:43:20 EDT 2010
Log message for revision 112384:
Properly deprecate this API, it's used outside
Changed:
U Zope/branches/hannosch-dtml-vs-accesscontrol/src/AccessControl/DTML.py
-=-
Modified: Zope/branches/hannosch-dtml-vs-accesscontrol/src/AccessControl/DTML.py
===================================================================
--- Zope/branches/hannosch-dtml-vs-accesscontrol/src/AccessControl/DTML.py 2010-05-16 19:41:34 UTC (rev 112383)
+++ Zope/branches/hannosch-dtml-vs-accesscontrol/src/AccessControl/DTML.py 2010-05-16 19:43:19 UTC (rev 112384)
@@ -13,6 +13,9 @@
"""Add security system support to Document Templates
"""
-# BBB
-from DocumentTemplate.security import DTMLSecurityAPI
-from DocumentTemplate.security import RestrictedDTML
+from zope.deferredimport import deprecated
+
+deprecated("Please import from DocumentTemplate.security",
+ DTMLSecurityAPI = 'DocumentTemplate.security:DTMLSecurityAPI',
+ RestrictedDTML = 'DocumentTemplate.security:RestrictedDTML',
+)
More information about the Zope-Checkins
mailing list