[Zope] dtml-in format
Dylan Reinhardt
zope at dylanreinhardt.com
Thu Aug 7 23:50:30 EDT 2003
On Thu, 2003-08-07 at 15:24, Ben Bush wrote:
> I would like to use dtml-in to iterate through some results in a python
> script. I am not sure what format I need to put the results into in my
> python script to be able to reference them in the <dtml-in> tags. I am
> currently trying to return a dictionary but that does not seem to work.
You can't iterate over a dictionary... at least, not yet. :-)
Instead, have the script return a *list* of items to iterate over. That
should do the trick.
HTH,
Dylan
More information about the Zope
mailing list