[Zope] sequence-item is a String? (was: Calling objects with arguments in a sequence) sequence)

Dieter Maurer dieter@handshake.de
Fri, 29 Sep 2000 23:47:32 +0200 (CEST)


seb writes:
 > If you do:
 > 
 > <dtml-in "objectValues('Foo Thing')">
 > 	<dtml-let thing=sequence-item>
 > 		<dtml-var "thing.id()">
 > 	</dtml-let>
 > </dtml-in>
"sequence-item" is not a string.

However, <dtml-let ... xxx=name ...>
calls "name" (if callable) like any name argument to a
"dtml" tag.

Use "<dtml-let thing="_.getitem('sequence-item')">.


Dieter