[Zope-CVS] CVS: Products/Ape/lib/apelib/zope2 - scripts.py:1.2
Christian Zagrodnick
cz@gocept.com
Fri, 11 Apr 2003 10:29:36 -0400
Update of /cvs-repository/Products/Ape/lib/apelib/zope2
In directory cvs.zope.org:/tmp/cvs-serv6396
Modified Files:
scripts.py
Log Message:
Users not having the set proxy role were not able to access the a python
script because write checks for proxy roles.
=== Products/Ape/lib/apelib/zope2/scripts.py 1.1 => 1.2 ===
--- Products/Ape/lib/apelib/zope2/scripts.py:1.1 Wed Apr 9 23:09:58 2003
+++ Products/Ape/lib/apelib/zope2/scripts.py Fri Apr 11 10:29:36 2003
@@ -64,8 +64,10 @@
def deserialize(self, object, event, state):
assert isinstance(state, StringType)
assert isinstance(object, PythonScript)
+ object._validateProxy = lambda: 0
object.write(state)
object._makeFunction()
+ del(object._validateProxy)