Commit 652d9ccb authored by Andreas Jung's avatar Andreas Jung

- Collector #634: Image objects can now be rendered without border

  attribute by calling "image.tag(border='')".
parent 2710c406
...@@ -43,6 +43,9 @@ Zope Changes ...@@ -43,6 +43,9 @@ Zope Changes
Bugs Fixed Bugs Fixed
- Collector #634: Image objects can now be rendered without border
attribute by calling "image.tag(border='')".
- Collector #695: Object IDs "." and ".." are no longer permitted. - Collector #695: Object IDs "." and ".." are no longer permitted.
- Collector #771: ZCatalog failed to index DTML Document if the name - Collector #771: ZCatalog failed to index DTML Document if the name
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
############################################################################## ##############################################################################
"""Image object""" """Image object"""
__version__='$Revision: 1.143 $'[11:-2] __version__='$Revision: 1.144 $'[11:-2]
import Globals, struct import Globals, struct
from OFS.content_types import guess_content_type from OFS.content_types import guess_content_type
...@@ -777,7 +777,8 @@ class Image(File): ...@@ -777,7 +777,8 @@ class Image(File):
for key in args.keys(): for key in args.keys():
value = args.get(key) value = args.get(key)
result = '%s %s="%s"' % (result, key, value) if value:
result = '%s %s="%s"' % (result, key, value)
return '%s />' % result return '%s />' % result
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment