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
b27c3596
Commit
b27c3596
authored
Nov 22, 2005
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forward port fixes for collector #1621 and #1894 from the 2.8 branch.
parent
b0b56654
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
6 deletions
+13
-6
lib/python/AccessControl/DTML.py
lib/python/AccessControl/DTML.py
+3
-2
lib/python/DocumentTemplate/DT_Util.py
lib/python/DocumentTemplate/DT_Util.py
+4
-1
lib/python/Products/PythonScripts/help/PythonScript.py
lib/python/Products/PythonScripts/help/PythonScript.py
+4
-1
lib/python/RestrictedPython/Utilities.py
lib/python/RestrictedPython/Utilities.py
+2
-2
No files found.
lib/python/AccessControl/DTML.py
View file @
b27c3596
...
@@ -15,11 +15,13 @@
...
@@ -15,11 +15,13 @@
$Id$
$Id$
"""
"""
from
DocumentTemplate
import
DT_Util
from
DocumentTemplate
import
DT_Util
import
SecurityManagement
,
string
,
math
,
whrandom
,
random
import
SecurityManagement
,
string
,
math
,
random
import
DocumentTemplate.sequence
import
DocumentTemplate.sequence
from
ZopeGuards
import
safe_builtins
from
ZopeGuards
import
safe_builtins
whrandom
=
random
# BBB: will be removed in Zope 2.10
# RestrictedDTML is inserted by AccessControl.Implementation.
# RestrictedDTML is inserted by AccessControl.Implementation.
...
@@ -27,7 +29,6 @@ from ZopeGuards import safe_builtins
...
@@ -27,7 +29,6 @@ from ZopeGuards import safe_builtins
DT_Util
.
TemplateDict
.
__allow_access_to_unprotected_subobjects__
=
1
DT_Util
.
TemplateDict
.
__allow_access_to_unprotected_subobjects__
=
1
string
.
__allow_access_to_unprotected_subobjects__
=
1
string
.
__allow_access_to_unprotected_subobjects__
=
1
math
.
__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
random
.
__allow_access_to_unprotected_subobjects__
=
1
DocumentTemplate
.
sequence
.
__allow_access_to_unprotected_subobjects__
=
1
DocumentTemplate
.
sequence
.
__allow_access_to_unprotected_subobjects__
=
1
...
...
lib/python/DocumentTemplate/DT_Util.py
View file @
b27c3596
...
@@ -315,7 +315,10 @@ Python expression support
...
@@ -315,7 +315,10 @@ Python expression support
- Special security-aware versions of 'getattr' and 'hasattr',
- Special security-aware versions of 'getattr' and 'hasattr',
- The Python 'string', 'math', and 'whrandom' modules, and
- The Python 'string', 'math', modules,
- BBB alias for the Python 'whrandom' module (will be removed in
Zope 2.10),
- A special function, 'test', that supports if-then expressions.
- A special function, 'test', that supports if-then expressions.
The 'test' function accepts any number of arguments. If the
The 'test' function accepts any number of arguments. If the
...
...
lib/python/Products/PythonScripts/help/PythonScript.py
View file @
b27c3596
...
@@ -54,7 +54,10 @@ class PythonScript:
...
@@ -54,7 +54,10 @@ class PythonScript:
o math
o math
o whrandom and random
o random
o whrandom (deprecated in Python; aliased BBB support will be
removed in Zope 2.10).
o Products.PythonScripts.standard
o Products.PythonScripts.standard
...
...
lib/python/RestrictedPython/Utilities.py
View file @
b27c3596
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
__version__
=
'$Revision: 1.7 $'
[
11
:
-
2
]
__version__
=
'$Revision: 1.7 $'
[
11
:
-
2
]
import
string
,
math
,
random
,
whrandom
import
string
,
math
,
random
import
DocumentTemplate.sequence
import
DocumentTemplate.sequence
from
DateTime.DateTime
import
DateTime
from
DateTime.DateTime
import
DateTime
...
@@ -22,7 +22,7 @@ utility_builtins = {}
...
@@ -22,7 +22,7 @@ utility_builtins = {}
utility_builtins
[
'string'
]
=
string
utility_builtins
[
'string'
]
=
string
utility_builtins
[
'math'
]
=
math
utility_builtins
[
'math'
]
=
math
utility_builtins
[
'random'
]
=
random
utility_builtins
[
'random'
]
=
random
utility_builtins
[
'whrandom'
]
=
whrandom
utility_builtins
[
'whrandom'
]
=
random
# BBB: will be removed in Zope 2.10
utility_builtins
[
'sequence'
]
=
DocumentTemplate
.
sequence
utility_builtins
[
'sequence'
]
=
DocumentTemplate
.
sequence
utility_builtins
[
'DateTime'
]
=
DateTime
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