[Zope] expr="id <> 'index_html" issue
Michel Pelletier
michel@digicool.com
Mon, 09 Oct 2000 15:29:12 -0700
Seb Bacon wrote:
>
> >
> > try <untested but this is a faq>:
> >
> > <dtml-in expr="objectValues('DTML Method')" sort="title">
> > <dtml-if expr="_[id] <> 'index_html'">
> > <td align="center"><a href="&dtml-absolute_url;"><dtml-var
> > title_or_id></a></td>
> > </dtml-if>
> > </dtml-in>
> >
>
> that should be
>
> <dtml-if expr="_['id'] <> 'index_html'">
>
> (quotes round id)
>
> <dtml-if expr="id() <> 'index_html'">
>
> would also work. This is because sometimes id is a property, sometimes it's
> a method. The former version would work in every case; the latter only
> where id is a method. It's annoying, but there's talk of providing a
> getId() method for every object to sort this inconsistency out.
As far as I know, getId() is in CVS and is documented in the CVS API
online help. You should be seeing it soon.
-Michel