21 Oct
2002
21 Oct
'02
7:49 a.m.
On Fri, Oct 18, 2002 at 04:18:54PM -0400, Jon Whitener wrote:
I found in the docs about the
tag(height=None, width=None, alt=None, scale=0, xscale=0, yscale=0, **args)
method of an Image object, but I have no idea how to access or modify that stuff.
<div tal:replace="structure python:here.menu_icon.tag(class='menu-icon')" /> The tag() method of the image will put in height, width and alt itself, and also includes any arguments you give it as attributes in the IMG tag.
I'm glad the WIDTH and HEIGTH are included automagically, but how can I: - Leave out the BORDER attribute? I don't know how that got in there.
You can't with image_object.tag(), but border=0 is a fairly harmless default, isn't it? Felix.