[Zope] 'IN' Atribute within as a python script parameter

Florent Guillaume fg@nuxeo.com
13 Aug 2001 23:24:24 GMT


> However be careful, be *very* careful, when using _['sequence-item'] or
> <dtml-let si=sequence-item>, because in the not so infrequent case where
> sequence-item is an object that is callable, like, say, a DTML Document,
> it will get called, thus rendered, and "si" will be a string and not an
> object like you probably expected...

By the way I failed to mention, you might want to use instead:
_.getitem('sequence-item') which doesn't call the object.


See Dieter's very nice doc at:
http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html#Object_argument


Florent Guillaume
Nuxeo