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
aaf6c749
Commit
aaf6c749
authored
Jun 21, 2001
by
Evan Simpson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Import CompilerError into *Python modules.
parent
62b6b798
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
3 deletions
+7
-3
lib/python/Products/PageTemplates/CHANGES.txt
lib/python/Products/PageTemplates/CHANGES.txt
+1
-0
lib/python/Products/PageTemplates/PythonExpr.py
lib/python/Products/PageTemplates/PythonExpr.py
+2
-1
lib/python/Products/PageTemplates/ZPythonExpr.py
lib/python/Products/PageTemplates/ZPythonExpr.py
+2
-1
lib/python/Products/PageTemplates/ZRPythonExpr.py
lib/python/Products/PageTemplates/ZRPythonExpr.py
+2
-1
No files found.
lib/python/Products/PageTemplates/CHANGES.txt
View file @
aaf6c749
...
...
@@ -12,3 +12,4 @@ Page Template changes
Bugs Fixed
- The various *Python modules failed to import CompilerError.
lib/python/Products/PageTemplates/PythonExpr.py
View file @
aaf6c749
...
...
@@ -86,8 +86,9 @@
"""Generic Python Expression Handler
"""
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
from
TALES
import
CompilerError
from
string
import
strip
,
split
,
join
,
replace
,
lstrip
class
getSecurityManager
:
...
...
lib/python/Products/PageTemplates/ZPythonExpr.py
View file @
aaf6c749
...
...
@@ -89,11 +89,12 @@ Handler for Python expressions, using the pre-Python 2.1 restriction
machinery from PythonScripts.
"""
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
from
AccessControl
import
getSecurityManager
from
Products.PythonScripts.Guarded
import
_marker
,
\
GuardedBlock
,
theGuard
,
safebin
,
WriteGuard
,
ReadGuard
,
UntupleFunction
from
TALES
import
CompilerError
from
string
import
strip
,
split
,
join
,
replace
,
lstrip
from
PythonExpr
import
PythonExpr
...
...
lib/python/Products/PageTemplates/ZRPythonExpr.py
View file @
aaf6c749
...
...
@@ -88,11 +88,12 @@
Handler for Python expressions that uses the RestrictedPython package.
"""
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
from
AccessControl
import
full_read_guard
,
full_write_guard
,
\
safe_builtins
,
getSecurityManager
from
RestrictedPython
import
compile_restricted_eval
from
TALES
import
CompilerError
from
string
import
strip
,
split
,
join
,
replace
,
lstrip
from
PythonExpr
import
PythonExpr
...
...
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