[Zope] Re: [Zope]

Oliver Bleutgen ">Oliver Bleutgen <myzope@gmx.net>
Mon, 9 Apr 2001 17:04:49 +0200


> Hi

> Can anybody tell me why the following code is never get into the "if Bit"
> of
> the condition? Even when "absolute_url" and "PageUrl" are really 100%
> identicly .... How can I make this working?

> <dtml-let PageUrl="absolute_url">
> ... some other staff (in, if and with ...)
> ...   <dtml-if expr="absolute_url == PageUrl">
>               <BR>THAT'S IT .... !!!
>    <dtml-else>
>             <BR>// <dtml-var absolute_url>
>             <BR>// <dtml-var PageUrl>
>    </dtml-if>
> <dtml-let>

> I'm allready 2 days to late with this ... I'm really happy about any help

Stefan,

<dtml-var absolute_url> is NOT the same as <dtml-var "absolute_url">
The first _calls_ the method absolute_url, the second renders something
like <Python Method object at 86d8d40>, which is clearly not
equal to the string PageUrl

<dtml-if expr="absolute_url() == PageUrl"> should work.

cheers,
oliver