[Zope] How should a collection be in a Python product if i want
to trave rse it with <dtml-in> rse it with <dtml-in>
Oleg Broytmann
phd@phd.dada.ru
Wed, 25 Oct 2000 13:05:20 +0000 (GMT)
On Wed, 25 Oct 2000, [iso-8859-1] Max Møller Rasmussen wrote:
> class simple:
> def __init__(self, value):
> self.value = value
>
> theList = [simple(1), simple(2), simple(3), simple(4)]
>
> I would expect to be able to traverse it like below (The objects namespace
> would be popped onto the namespace.):
>
> <dtml-in theList>
> <dtml-var value>
> </dtml-in>
Looks good...
> But it isn't so.
Why? What was the error?
Oleg. (All opinions are mine and not of my employer)
----
Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru
Programmers don't die, they just GOSUB without RETURN.