24 Jul
2001
24 Jul
'01
2:06 p.m.
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