[Zope-Checkins] CVS: Zope/lib/python/OFS - Image.py:1.145.2.3

Brian Lloyd brian at zope.com
Tue Oct 21 10:53:15 EDT 2003


Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv10504

Modified Files:
      Tag: Zope-2_7-branch
	Image.py 
Log Message:
fix bug 1080

=== Zope/lib/python/OFS/Image.py 1.145.2.2 => 1.145.2.3 ===
--- Zope/lib/python/OFS/Image.py:1.145.2.2	Mon Jul 21 12:35:34 2003
+++ Zope/lib/python/OFS/Image.py	Tue Oct 21 10:53:15 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