[Zope] Calling objects with arguments in a sequence
Dieter Maurer
dieter@handshake.de
Fri, 29 Sep 2000 23:34:16 +0200 (CEST)
Tres Seaver writes:
> You were very close -- the trick here is that 'objectValues' returns
> real objects, not IDs. Try this (untested)::
>
> <dtml-in "objectValues( [ 'Photo' ] )">
> <dtml-let photo=sequence-item> <!-- alias so we can use in expr! -->
> <dtml-var "photo( display='thumbnail' )">
> </dtml-let>
> </dtml-in>
This, probably, will not work, as *ALL* name arguments (as e.g.
in <dtml-let .... xxx=name ...>)
call the object, if it is callable.
You can use "_.getitem('sequence_item')" to get an object itself
and not the result of calling the object.
Dieter