[Zope] object paths with dtml-var -- newbie
Oliver Bleutgen
myzope@gmx.net
Fri, 16 Aug 2002 11:52:05 +0200
Chris Withers wrote:
> Dieter Maurer wrote:
>
>>
>> The name "mds_logo" suggests, it is an "Image" object.
>> Image objects are not callable.
>
>
> Really?
>
> I don't think that's true, if you call an image object you get a '<img
> src=xx>' string back...
>
> am I wrong?
>
> Chris
I wondered myself and looked it up.
It's the __str__ method of the image class which returns the tag.
Additionally, there's an index_html method defined which returns the
file itself.
No __call__ method though. This is something I always are confused of,
why sometimes __call__() is used, and sometimes index_html().
cheers,
oliver