[Zope-Checkins] SVN: Zope/branches/2.12/ Explicitly declared ZTUtils APIs as public
Tres Seaver
cvs-admin at zope.org
Thu Sep 13 17:31:50 UTC 2012
Log message for revision 127839:
Explicitly declared ZTUtils APIs as public
Repairs breakages in apps following fix for LP #1047318.
Changed:
_U Zope/branches/2.12/
U Zope/branches/2.12/doc/CHANGES.rst
U Zope/branches/2.12/src/ZTUtils/__init__.py
-=-
Modified: Zope/branches/2.12/doc/CHANGES.rst
===================================================================
--- Zope/branches/2.12/doc/CHANGES.rst 2012-09-13 15:16:24 UTC (rev 127838)
+++ Zope/branches/2.12/doc/CHANGES.rst 2012-09-13 17:31:44 UTC (rev 127839)
@@ -8,7 +8,10 @@
2.12.25 (unreleased)
--------------------
+- Explicitly declared ZTUtils APIs as public (repairs breakages in apps
+ followin fix for LP #1047318).
+
2.12.24 (2012-09-09)
--------------------
Modified: Zope/branches/2.12/src/ZTUtils/__init__.py
===================================================================
--- Zope/branches/2.12/src/ZTUtils/__init__.py 2012-09-13 15:16:24 UTC (rev 127838)
+++ Zope/branches/2.12/src/ZTUtils/__init__.py 2012-09-13 17:31:44 UTC (rev 127839)
@@ -11,8 +11,6 @@
#
##############################################################################
"""Package of template utility classes and functions.
-
-$Id$
"""
# BBB 2005/05/01 -- to be removed after 12 months
import zope.deferredimport
@@ -20,11 +18,17 @@
Iterator = 'ZTUtils.Iterator:Iterator'
)
+from AccessControl.SecurityInfo import ModuleSecurityInfo
+security = ModuleSecurityInfo('ZTUtils')
+
+security.declarePublic('encodeExpansion', 'decodeExpansion', 'a2b', 'b2a')
from Tree import encodeExpansion, decodeExpansion, a2b, b2a
+
+security.declarePublic('SimpleTreeMaker')
from SimpleTree import SimpleTreeMaker
-__allow_access_to_unprotected_subobjects__ = 1
-__roles__ = None
+security.declarePublic('Batch', 'TreeMaker', 'SimpleTreeMaker', 'LazyFilter')
+from ZTUtils.Zope import Batch, TreeMaker, SimpleTreeMaker, LazyFilter
-from ZTUtils.Zope import Batch, TreeMaker, SimpleTreeMaker, LazyFilter
+security.declarePublic('url_query', 'make_query', 'make_hidden_input')
from ZTUtils.Zope import url_query, make_query, make_hidden_input
More information about the Zope-Checkins
mailing list