[Zope-Checkins] SVN: Zope/branches/2.13/ Forward-port r127839 from the 2.12 branch.

Tres Seaver cvs-admin at zope.org
Thu Sep 13 17:52:43 UTC 2012


Log message for revision 127841:
  Forward-port r127839 from the 2.12 branch.

Changed:
  _U  Zope/branches/2.13/
  U   Zope/branches/2.13/doc/CHANGES.rst
  U   Zope/branches/2.13/src/ZTUtils/__init__.py

-=-
Modified: Zope/branches/2.13/doc/CHANGES.rst
===================================================================
--- Zope/branches/2.13/doc/CHANGES.rst	2012-09-13 17:32:09 UTC (rev 127840)
+++ Zope/branches/2.13/doc/CHANGES.rst	2012-09-13 17:52:40 UTC (rev 127841)
@@ -8,6 +8,8 @@
 2.13.18 (unreleased)
 --------------------
 
+- Explicitly declared ZTUtils APIs as public (repairs breakages in apps
+  following fix for LP #1047318).
 
 2.13.17 (2012-09-09)
 --------------------

Modified: Zope/branches/2.13/src/ZTUtils/__init__.py
===================================================================
--- Zope/branches/2.13/src/ZTUtils/__init__.py	2012-09-13 17:32:09 UTC (rev 127840)
+++ Zope/branches/2.13/src/ZTUtils/__init__.py	2012-09-13 17:52:40 UTC (rev 127841)
@@ -12,11 +12,14 @@
 ##############################################################################
 """Package of template utility classes and functions.
 """
+from AccessControl.SecurityInfo import ModuleSecurityInfo
+security = ModuleSecurityInfo('ZTUtils')
 
+security.declarePublic('encodeExpansion', 'decodeExpansion', 'a2b', 'b2a')
 from Tree import encodeExpansion, decodeExpansion, a2b, b2a
 
-__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