[Zope-Checkins] CVS: Zope/lib/python/Products/PythonScripts - standard.py:1.10.4.1
Chris McDonough
chrism@zope.com
Tue, 10 Sep 2002 23:37:07 -0400
Update of /cvs-repository/Zope/lib/python/Products/PythonScripts
In directory cvs.zope.org:/tmp/cvs-serv22446/lib/python/Products/PythonScripts
Modified Files:
Tag: chrism-install-branch
standard.py
Log Message:
Merging chrism-install-branch with HEAD changes.
=== Zope/lib/python/Products/PythonScripts/standard.py 1.10 => 1.10.4.1 ===
--- Zope/lib/python/Products/PythonScripts/standard.py:1.10 Fri Aug 16 10:31:14 2002
+++ Zope/lib/python/Products/PythonScripts/standard.py Tue Sep 10 23:36:36 2002
@@ -53,4 +53,18 @@
finally: security.removeContext(self)
+from ZPublisher.HTTPRequest import record
+
+security.declarePublic('Object')
+
+# We don't expose classes directly to restricted code
+class _Object(record):
+ _guarded_writes = 1
+
+ def __setitem__(self, key, value):
+ self.__dict__[str(key)] = value
+
+def Object():
+ return _Object()
+
security.apply(globals())