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
91dc0914
Commit
91dc0914
authored
Nov 22, 2005
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Collector #1621, 1894: Removed support for use of long-deprecated 'whrandom' module.
parent
c3fb6eee
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
6 deletions
+7
-6
doc/CHANGES.txt
doc/CHANGES.txt
+3
-0
lib/python/AccessControl/DTML.py
lib/python/AccessControl/DTML.py
+1
-2
lib/python/DocumentTemplate/DT_Util.py
lib/python/DocumentTemplate/DT_Util.py
+1
-1
lib/python/Products/PythonScripts/help/PythonScript.py
lib/python/Products/PythonScripts/help/PythonScript.py
+1
-1
lib/python/RestrictedPython/Utilities.py
lib/python/RestrictedPython/Utilities.py
+1
-2
No files found.
doc/CHANGES.txt
View file @
91dc0914
...
...
@@ -100,6 +100,9 @@ Zope Changes
Bugs Fixed
- Collector #1621, 1894: Removed support for use of long-deprecated
'whrandom' module.
- OFS PropertySheets / webdav: Fixed dav__resourcetype.
__dav_collection__ with a false value was overridden by
isAnObjectManager.
...
...
lib/python/AccessControl/DTML.py
View file @
91dc0914
...
...
@@ -15,7 +15,7 @@
$Id$
"""
from
DocumentTemplate
import
DT_Util
import
SecurityManagement
,
string
,
math
,
whrandom
,
random
import
SecurityManagement
,
string
,
math
,
random
import
DocumentTemplate.sequence
from
ZopeGuards
import
safe_builtins
...
...
@@ -27,7 +27,6 @@ from ZopeGuards import safe_builtins
DT_Util
.
TemplateDict
.
__allow_access_to_unprotected_subobjects__
=
1
string
.
__allow_access_to_unprotected_subobjects__
=
1
math
.
__allow_access_to_unprotected_subobjects__
=
1
whrandom
.
__allow_access_to_unprotected_subobjects__
=
1
random
.
__allow_access_to_unprotected_subobjects__
=
1
DocumentTemplate
.
sequence
.
__allow_access_to_unprotected_subobjects__
=
1
...
...
lib/python/DocumentTemplate/DT_Util.py
View file @
91dc0914
...
...
@@ -315,7 +315,7 @@ Python expression support
- Special security-aware versions of 'getattr' and 'hasattr',
- The Python 'string', 'math', and '
wh
random' modules, and
- The Python 'string', 'math', and 'random' modules, and
- A special function, 'test', that supports if-then expressions.
The 'test' function accepts any number of arguments. If the
...
...
lib/python/Products/PythonScripts/help/PythonScript.py
View file @
91dc0914
...
...
@@ -54,7 +54,7 @@ class PythonScript:
o math
o
whrandom and
random
o random
o Products.PythonScripts.standard
...
...
lib/python/RestrictedPython/Utilities.py
View file @
91dc0914
...
...
@@ -13,7 +13,7 @@
__version__
=
'$Revision: 1.7 $'
[
11
:
-
2
]
import
string
,
math
,
random
,
whrandom
import
string
,
math
,
random
import
DocumentTemplate.sequence
from
DateTime.DateTime
import
DateTime
...
...
@@ -22,7 +22,6 @@ utility_builtins = {}
utility_builtins
[
'string'
]
=
string
utility_builtins
[
'math'
]
=
math
utility_builtins
[
'random'
]
=
random
utility_builtins
[
'whrandom'
]
=
whrandom
utility_builtins
[
'sequence'
]
=
DocumentTemplate
.
sequence
utility_builtins
[
'DateTime'
]
=
DateTime
...
...
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