[Zope-dev] Image.tag() no longer publishable?

Paul Winkler pw_lists at slinkp.com
Thu Mar 4 22:14:28 EST 2004


On Thu, Mar 04, 2004 at 05:26:59PM -0800, Andy McKay wrote:
> Marc Lindahl wrote:
> >If you're using Plone, it monkeypatches Image.tag().  Caused me to add 
> >an Image.pil_tag() monkeypatch to my monkeypatch ImageTag_CorePatch :)
> 
> Oh I wish we could get that into Zope so it actually puts out an image 
> tag *by default* without a border. Sigh.

Eh? I'm not sure what you want. No border attribute,
or border="0"?
>From OFS.Image.tag in zope 2.7.0:

        if not 'border' in [ x.lower() for x in  args.keys()]:
            result = '%s border="0"' % result

... that's been in there for about 3 years!
If you want to force no border attribute, you can pass it
a false value.

Plone does the opposite - the monkeypatch causes there to be
no border attribute unless you ask for one.
So you leave it out and then you wrap your image in an <a>
tag and every freakin' browser puts a border around it. Blah.
I prefer Zope's default to Plone's.

-- 

Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's INTER PUERILE NAMETAG FARMER!
(random hero from isometric.spaceninja.com)



More information about the Zope-Dev mailing list