Commit bab63bb2 authored by Andreas Jung's avatar Andreas Jung

collector #1918: added Set to RestrictedPython

parent 0f1a89c0
...@@ -48,6 +48,8 @@ Zope Changes ...@@ -48,6 +48,8 @@ Zope Changes
Features added Features added
- PythonScripts: added 'Set' class to RestrictedPython (Collector #1918)
- added 'fast_listen' directive to http-server and webdav-source-server - 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 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 until the late startup phase. This in in particular useful when running
......
...@@ -16,6 +16,7 @@ __version__='$Revision: 1.7 $'[11:-2] ...@@ -16,6 +16,7 @@ __version__='$Revision: 1.7 $'[11:-2]
import string, math, random import string, math, random
import DocumentTemplate.sequence import DocumentTemplate.sequence
from DateTime.DateTime import DateTime from DateTime.DateTime import DateTime
from sets import Set
utility_builtins = {} utility_builtins = {}
...@@ -24,6 +25,8 @@ utility_builtins['math'] = math ...@@ -24,6 +25,8 @@ utility_builtins['math'] = math
utility_builtins['random'] = random utility_builtins['random'] = random
utility_builtins['sequence'] = DocumentTemplate.sequence utility_builtins['sequence'] = DocumentTemplate.sequence
utility_builtins['DateTime'] = DateTime utility_builtins['DateTime'] = DateTime
utility_builtins['Set'] = Set
def same_type(arg1, *args): def same_type(arg1, *args):
'''Compares the class or type of two or more objects.''' '''Compares the class or type of two or more objects.'''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment