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
41a94ac3
Commit
41a94ac3
authored
Jun 06, 2010
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We need to stuff 'sequence' into some more module globals
parent
5ed89f43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
src/DocumentTemplate/DT_Util.py
src/DocumentTemplate/DT_Util.py
+9
-7
No files found.
src/DocumentTemplate/DT_Util.py
View file @
41a94ac3
...
@@ -20,6 +20,12 @@ import string
...
@@ -20,6 +20,12 @@ import string
from
types
import
BuiltinFunctionType
from
types
import
BuiltinFunctionType
from
types
import
FunctionType
from
types
import
FunctionType
from
AccessControl.tainted
import
TaintedString
from
AccessControl.ZopeGuards
import
_safe_globals
from
RestrictedPython.Guards
import
safe_builtins
from
RestrictedPython.Utilities
import
utility_builtins
from
RestrictedPython.Eval
import
RestrictionCapableEval
# for import by other modules, dont remove!
# for import by other modules, dont remove!
from
DocumentTemplate.html_quote
import
html_quote
,
ustr
from
DocumentTemplate.html_quote
import
html_quote
,
ustr
...
@@ -28,18 +34,14 @@ from DocumentTemplate.cDocumentTemplate import render_blocks, safe_callable
...
@@ -28,18 +34,14 @@ from DocumentTemplate.cDocumentTemplate import render_blocks, safe_callable
from
DocumentTemplate.cDocumentTemplate
import
join_unicode
from
DocumentTemplate.cDocumentTemplate
import
join_unicode
from
DocumentTemplate
import
sequence
from
DocumentTemplate
import
sequence
from
RestrictedPython.Guards
import
safe_builtins
from
RestrictedPython.Utilities
import
utility_builtins
from
RestrictedPython.Eval
import
RestrictionCapableEval
from
AccessControl.tainted
import
TaintedString
if
'test'
not
in
utility_builtins
:
if
'test'
not
in
utility_builtins
:
from
RestrictedPython.Utilities
import
test
from
RestrictedPython.Utilities
import
test
utility_builtins
[
'test'
]
=
test
utility_builtins
[
'test'
]
=
test
test
=
utility_builtins
[
'test'
]
# for backwards compatibility, dont remove!
test
=
utility_builtins
[
'test'
]
# for backwards compatibility, dont remove!
utility_builtins
[
'sequence'
]
=
sequence
utility_builtins
[
'sequence'
]
=
sequence
safe_builtins
[
'sequence'
]
=
sequence
_safe_globals
[
'sequence'
]
=
sequence
LIMITED_BUILTINS
=
1
LIMITED_BUILTINS
=
1
...
...
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