[Zope-Checkins] CVS: Zope/lib/python/OFS - Image.py:1.147
Brian Lloyd
brian at zope.com
Tue Oct 21 10:54:28 EDT 2003
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv10680
Modified Files:
Image.py
Log Message:
fix bug 1080
=== Zope/lib/python/OFS/Image.py 1.146 => 1.147 ===
--- Zope/lib/python/OFS/Image.py:1.146 Sun Jul 6 08:11:14 2003
+++ Zope/lib/python/OFS/Image.py Tue Oct 21 10:54:27 2003
@@ -163,11 +163,11 @@
self.ZCacheable_set(None)
return ''
- if self.precondition and hasattr(self,self.precondition):
+ if self.precondition and hasattr(self, str(self.precondition)):
# Grab whatever precondition was defined and then
# execute it. The precondition will raise an exception
# if something violates its terms.
- c=getattr(self,self.precondition)
+ c=getattr(self, str(self.precondition))
if hasattr(c,'isDocTemp') and c.isDocTemp:
c(REQUEST['PARENTS'][1],REQUEST)
else:
More information about the Zope-Checkins
mailing list