[Zope] Comparing object values?
Jerome Alet
alet@unice.fr
Tue, 24 Jul 2001 16:06:54 +0200 (MET DST)
On Tue, 24 Jul 2001, Paul Smith wrote:
> Code snippet:
>
> <dtml-unless expr="id=='index_html'">
> <dtml-var id>
> </dtml-unless>
>
> This does not work - I'm assuming this is because ID is an object, rather
> than a string, and therefore not comparable. I've tried converting the
> object to a string, but this goofs and prints nothing to the screen:
>
> <dtml-call "REQUEST.set('page_id', _.str(id))">
> <dtml-var page_id>
>
> but this deposits something like:
>
> <Python Method object at 14c9990>
use getId() instead of id
hoping this helps.
Jerome Alet