Commit aaf6c749 authored by Evan Simpson's avatar Evan Simpson

Import CompilerError into *Python modules.

parent 62b6b798
...@@ -12,3 +12,4 @@ Page Template changes ...@@ -12,3 +12,4 @@ Page Template changes
Bugs Fixed Bugs Fixed
- The various *Python modules failed to import CompilerError.
...@@ -86,8 +86,9 @@ ...@@ -86,8 +86,9 @@
"""Generic Python Expression Handler """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 from string import strip, split, join, replace, lstrip
class getSecurityManager: class getSecurityManager:
......
...@@ -89,11 +89,12 @@ Handler for Python expressions, using the pre-Python 2.1 restriction ...@@ -89,11 +89,12 @@ Handler for Python expressions, using the pre-Python 2.1 restriction
machinery from PythonScripts. machinery from PythonScripts.
""" """
__version__='$Revision: 1.3 $'[11:-2] __version__='$Revision: 1.4 $'[11:-2]
from AccessControl import getSecurityManager from AccessControl import getSecurityManager
from Products.PythonScripts.Guarded import _marker, \ from Products.PythonScripts.Guarded import _marker, \
GuardedBlock, theGuard, safebin, WriteGuard, ReadGuard, UntupleFunction GuardedBlock, theGuard, safebin, WriteGuard, ReadGuard, UntupleFunction
from TALES import CompilerError
from string import strip, split, join, replace, lstrip from string import strip, split, join, replace, lstrip
from PythonExpr import PythonExpr from PythonExpr import PythonExpr
......
...@@ -88,11 +88,12 @@ ...@@ -88,11 +88,12 @@
Handler for Python expressions that uses the RestrictedPython package. 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, \ from AccessControl import full_read_guard, full_write_guard, \
safe_builtins, getSecurityManager safe_builtins, getSecurityManager
from RestrictedPython import compile_restricted_eval from RestrictedPython import compile_restricted_eval
from TALES import CompilerError
from string import strip, split, join, replace, lstrip from string import strip, split, join, replace, lstrip
from PythonExpr import PythonExpr from PythonExpr import PythonExpr
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment