[Zope-Checkins] CVS: Zope/lib/python/OFS - Image.py:1.144
Andreas Jung
andreas@andreas-jung.com
Sun, 2 Feb 2003 07:24:47 -0500
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv8763/lib/python/OFS
Modified Files:
Image.py
Log Message:
- Collector #634: Image objects can now be rendered without border
attribute by calling "image.tag(border='')".
=== Zope/lib/python/OFS/Image.py 1.143 => 1.144 ===
--- Zope/lib/python/OFS/Image.py:1.143 Wed Nov 13 14:17:44 2002
+++ Zope/lib/python/OFS/Image.py Sun Feb 2 07:24:44 2003
@@ -777,7 +777,8 @@
for key in args.keys():
value = args.get(key)
- result = '%s %s="%s"' % (result, key, value)
+ if value:
+ result = '%s %s="%s"' % (result, key, value)
return '%s />' % result