[Zope-dev] Patch: Add versatile "tag" method to Image

Michel Pelletier michel@digicool.com
Wed, 14 Jul 1999 13:16:09 -0400


> -----Original Message-----
> From: Martijn Pieters [mailto:mj@antraciet.nl]
> Sent: Wednesday, July 14, 1999 5:27 AM
> To: bruce@perens.com; zope-dev@zope.org; Michel Pelletier
> Subject: Re: [Zope-dev] Patch: Add versatile "tag" method to Image
> 
> 
> Attached patch (against the latest CVS), solves these points. 
> I changed 
> addition of the alt attribute to conditional, and added 
> quoting for all 
> tags. I also changed the way alt, width and height are 
> defaulted. The code 
> now checks wether they are equal to None, so you can do things like: 
> imagename.tag(alt='', width='', height='') to get an IMG tag 
> without any 
> alt, width or height attributes.

Done.

-Michel

> --
> Martijn Pieters, Web Developer
> | Antraciet http://www.antraciet.nl
> | Tel: +31-35-7502100 Fax: +31-35-7502111
> | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
> | PGP: 
http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------