[Zope3-checkins] CVS: Zope3/src/zope/app/content - image.py:1.4

Steve Alexander steve@cat-box.net
Mon, 30 Dec 2002 09:03:30 -0500


Update of /cvs-repository/Zope3/src/zope/app/content
In directory cvs.zope.org:/tmp/cvs-serv23914/src/zope/app/content

Modified Files:
	image.py 
Log Message:
Large refactoring of the event service.


=== Zope3/src/zope/app/content/image.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/content/image.py:1.3	Fri Dec 27 14:19:09 2002
+++ Zope3/src/zope/app/content/image.py	Mon Dec 30 09:02:56 2002
@@ -65,8 +65,12 @@
     def sizeForDisplay(self):
         'See ISized'
         w, h = self._image.getImageSize()
+        if w < 0:
+            w = '?'
+        if h < 0:
+            h = '?'
         bytes = self._image.getSize()
-        return '%s %rx%r' % (byteDisplay(bytes), w, h)
+        return '%s %sx%s' % (byteDisplay(bytes), w, h)
     
 def getImageInfo(data):
     data = str(data)