[Zope] zope and python script
Frank Tegtmeyer
fte@lightwerk.com
27 Feb 2002 19:12:32 +0100
<mbagepll@memphis.edu> writes:
> <dtml-in expr="Python_script()">
> <li>
> <dtml-var text>
> </li>
> </dtml-in>
with <dtml-var sequence-item> you get the elements of your list. If
these elements have attributes that you want to access then DTML
provides them directly with their name. Suppose you have list elements
with the attributes name and price you would use:
<dtml-in expr="Python_script()">
<dtml-if sequence-start>
<ul>
</dtml-if>
<li><dtml-var name>: <dtml-var price></li>
<dtml-if sequence-end>
</ul>
</dtml-if>
<dtml-else>
<p>Sorry, nothing found.</p>
</dtml-in>
Regards, Frank