[Zope-Checkins] CVS: Zope/lib/python/OFS - DTMLMethod.py:1.67.2.2
Matthew T. Kromer
matt@zope.com
Thu, 4 Oct 2001 11:21:11 -0400
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv14445
Modified Files:
Tag: Zope-2_4-branch
DTMLMethod.py
Log Message:
Vector of important fix where the DTMLMethod security speedup was marking
objects as being changed when it modified self.validate. The fix is
to adjust self.__dict__['validate'] instead. This fixes read operations from
doing write transactions on every request.
=== Zope/lib/python/OFS/DTMLMethod.py 1.67.2.1 => 1.67.2.2 ===
security=getSecurityManager()
security.addContext(self)
- self.validate = security.DTMLValidate
+ self.__dict__['validate'] = security.DTMLValidate
try:
if client is None:
@@ -200,7 +200,7 @@
finally:
security.removeContext(self)
- del self.validate
+ del self.__dict__['validate']
have_key=RESPONSE.headers.has_key
if not (have_key('content-type') or have_key('Content-Type')):