Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
bab63bb2
Commit
bab63bb2
authored
Jan 13, 2007
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
collector #1918: added Set to RestrictedPython
parent
0f1a89c0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
doc/CHANGES.txt
doc/CHANGES.txt
+2
-0
lib/python/RestrictedPython/Utilities.py
lib/python/RestrictedPython/Utilities.py
+3
-0
No files found.
doc/CHANGES.txt
View file @
bab63bb2
...
@@ -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
...
...
lib/python/RestrictedPython/Utilities.py
View file @
bab63bb2
...
@@ -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.'''
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment