[Zope-Checkins] SVN: Zope/branches/2.12/ Restrict the available functions in `DocumentTemplate.sequence` to public API's of `zope.sequencesort`.
Hanno Schlichting
hannosch at hannosch.eu
Mon Dec 12 13:39:21 UTC 2011
Log message for revision 123758:
Restrict the available functions in `DocumentTemplate.sequence` to public API's of `zope.sequencesort`.
Changed:
U Zope/branches/2.12/doc/CHANGES.rst
U Zope/branches/2.12/src/DocumentTemplate/sequence/SortEx.py
-=-
Modified: Zope/branches/2.12/doc/CHANGES.rst
===================================================================
--- Zope/branches/2.12/doc/CHANGES.rst 2011-12-12 13:36:39 UTC (rev 123757)
+++ Zope/branches/2.12/doc/CHANGES.rst 2011-12-12 13:39:21 UTC (rev 123758)
@@ -8,6 +8,9 @@
2.12.21 (unreleased)
--------------------
+- Restrict the available functions in `DocumentTemplate.sequence` to public
+ API's of `zope.sequencesort`.
+
- Turn `UndoSupport.get_request_var_or_attr` helper into a private API.
- Provide security declarations for `BTreeFolder2Base` class, instead of only
Modified: Zope/branches/2.12/src/DocumentTemplate/sequence/SortEx.py
===================================================================
--- Zope/branches/2.12/src/DocumentTemplate/sequence/SortEx.py 2011-12-12 13:36:39 UTC (rev 123757)
+++ Zope/branches/2.12/src/DocumentTemplate/sequence/SortEx.py 2011-12-12 13:39:21 UTC (rev 123758)
@@ -11,4 +11,11 @@
#
##############################################################################
-from zope.sequencesort.ssort import *
+from zope.sequencesort.ssort import nocase, make_sortfunctions
+from zope.sequencesort.ssort import sort, SortEx, SortBy
+
+# only if locale is already imported
+import sys
+if "locale" in sys.modules:
+ from zope.sequencesort.ssort import strcoll_nocase
+del sys
More information about the Zope-Checkins
mailing list