[Zope-Checkins] CVS: Zope2 - Guards.py:1.1.2.2 ZopeGuards.py:1.1.2.2
shane@digicool.com
shane@digicool.com
Thu, 26 Apr 2001 09:25:52 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/RestrictedPython
In directory korak:/tmp/cvs-serv3958
Modified Files:
Tag: RestrictedPythonBranch
Guards.py ZopeGuards.py
Log Message:
Moved _marker to where it gets used.
--- Updated File Guards.py in package Zope2 --
--- Guards.py 2001/04/26 02:40:12 1.1.2.1
+++ Guards.py 2001/04/26 13:25:50 1.1.2.2
@@ -102,8 +102,6 @@
'TypeError', 'ValueError', 'ZeroDivisionError',):
safe_builtins[name] = __builtins__[name]
-_marker = [] # Create a new marker object.
-
def _full_read_guard(g_attr, g_item, g_slice):
# Nested scope abuse!
--- Updated File ZopeGuards.py in package Zope2 --
--- ZopeGuards.py 2001/04/26 02:40:12 1.1.2.1
+++ ZopeGuards.py 2001/04/26 13:25:50 1.1.2.2
@@ -88,6 +88,8 @@
from Guards import safe_builtins, _full_read_guard, full_write_guard
from AccessControl import getSecurityManager, secureModule, Unauthorized
+_marker = [] # Create a new marker object.
+
def aq_validate(inst, obj, name, v, validate):
return validate(inst, obj, name, v)