[Zope-Checkins] SVN: Zope/trunk/ collector #1918: added Set to
RestrictedPython
Andreas Jung
andreas at andreas-jung.com
Sat Jan 13 05:54:45 EST 2007
Log message for revision 71997:
collector #1918: added Set to RestrictedPython
Changed:
U Zope/trunk/doc/CHANGES.txt
U Zope/trunk/lib/python/RestrictedPython/Utilities.py
-=-
Modified: Zope/trunk/doc/CHANGES.txt
===================================================================
--- Zope/trunk/doc/CHANGES.txt 2007-01-13 10:24:47 UTC (rev 71996)
+++ Zope/trunk/doc/CHANGES.txt 2007-01-13 10:54:44 UTC (rev 71997)
@@ -48,6 +48,8 @@
Features added
+ - PythonScripts: added 'Set' class to RestrictedPython (Collector #1918)
+
- added 'fast_listen' directive to http-server and webdav-source-server
sections in etc/zope.conf in order to defer the opening of the sockets
until the late startup phase. This in in particular useful when running
Modified: Zope/trunk/lib/python/RestrictedPython/Utilities.py
===================================================================
--- Zope/trunk/lib/python/RestrictedPython/Utilities.py 2007-01-13 10:24:47 UTC (rev 71996)
+++ Zope/trunk/lib/python/RestrictedPython/Utilities.py 2007-01-13 10:54:44 UTC (rev 71997)
@@ -16,6 +16,7 @@
import string, math, random
import DocumentTemplate.sequence
from DateTime.DateTime import DateTime
+from sets import Set
utility_builtins = {}
@@ -24,7 +25,9 @@
utility_builtins['random'] = random
utility_builtins['sequence'] = DocumentTemplate.sequence
utility_builtins['DateTime'] = DateTime
+utility_builtins['Set'] = Set
+
def same_type(arg1, *args):
'''Compares the class or type of two or more objects.'''
t = getattr(arg1, '__class__', type(arg1))
More information about the Zope-Checkins
mailing list