[Zope-Checkins] CVS: Zope/lib/python/Products/PythonScripts -
PythonScript.py:1.43.6.5
Tres Seaver
tseaver at zope.com
Thu Jan 8 15:47:23 EST 2004
Update of /cvs-repository/Zope/lib/python/Products/PythonScripts
In directory cvs.zope.org:/tmp/cvs-serv3333/lib/python/Products/PythonScripts
Modified Files:
Tag: Zope-2_6-branch
PythonScript.py
Log Message:
- Class security was not properly intialized for PythonScripts,
potentially allowing access to variables that should be protected.
It turned out that most of the security assertions were in fact
activated as a side effect of other code, but this fix is still
appropriate to ensure that all security declarations are properly
applied.
=== Zope/lib/python/Products/PythonScripts/PythonScript.py 1.43.6.4 => 1.43.6.5 ===
--- Zope/lib/python/Products/PythonScripts/PythonScript.py:1.43.6.4 Thu Jan 8 15:12:08 2004
+++ Zope/lib/python/Products/PythonScripts/PythonScript.py Thu Jan 8 15:47:22 2004
@@ -20,7 +20,7 @@
__version__='$Revision$'[11:-2]
import sys, os, traceback, re, marshal, new
-from Globals import DTMLFile, MessageDialog, package_home
+from Globals import DTMLFile, MessageDialog, package_home, InitializeClass
import AccessControl, OFS, RestrictedPython
from OFS.SimpleItem import SimpleItem
from DateTime.DateTime import DateTime
@@ -476,6 +476,8 @@
RESPONSE.setHeader('Content-Type', 'text/plain')
return self.read()
+
+InitializeClass(PythonScript)
class PythonScriptTracebackSupplement:
"""Implementation of ITracebackSupplement"""
More information about the Zope-Checkins
mailing list