[Checkins] SVN: z3c.image/trunk/src/z3c/image/proc/adapter.py handle closed temporary files

Bernd Dorn bernd.dorn at fhv.at
Tue Oct 10 09:35:31 EDT 2006


Log message for revision 70596:
  handle closed temporary files

Changed:
  U   z3c.image/trunk/src/z3c/image/proc/adapter.py

-=-
Modified: z3c.image/trunk/src/z3c/image/proc/adapter.py
===================================================================
--- z3c.image/trunk/src/z3c/image/proc/adapter.py	2006-10-10 10:08:50 UTC (rev 70595)
+++ z3c.image/trunk/src/z3c/image/proc/adapter.py	2006-10-10 13:35:30 UTC (rev 70596)
@@ -79,7 +79,7 @@
             return self.context
         key = {'cmds':str(self.cmds)}
         img = imgCache.query(self.context , key)
-        if img is not None:
+        if img is not None and not img.data.closed:
             img.data.seek(0)
             return img
         pimg = self.getPILImg()



More information about the Checkins mailing list