Skip to content

Commit

Permalink
Explicitly declared ZTUtils APIs as public
Browse files Browse the repository at this point in the history
Repairs breakages in apps following fix for LP #1047318.
  • Loading branch information
tseaver committed Sep 13, 2012
1 parent 676d4fb commit bee7e0f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
3 changes: 3 additions & 0 deletions doc/CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ http://docs.zope.org/zope2/releases/.
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)
--------------------
Expand Down
14 changes: 9 additions & 5 deletions src/ZTUtils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,24 @@
#
##############################################################################
"""Package of template utility classes and functions.
$Id$
"""
# BBB 2005/05/01 -- to be removed after 12 months
import zope.deferredimport
zope.deferredimport.define(
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
from SimpleTree import SimpleTreeMaker

__allow_access_to_unprotected_subobjects__ = 1
__roles__ = None
security.declarePublic('SimpleTreeMaker')
from SimpleTree import SimpleTreeMaker

security.declarePublic('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

0 comments on commit bee7e0f

Please sign in to comment.