[Zope] <dtml-var "python goes here!">

Chris Withers chrisw@nipltd.com
Tue, 15 Aug 2000 16:01:48 +0100


Always bear in mind that anything inside double quotes gets executed as
python.

Therefor, the followign lines are not doing what you intend:
Peter Hernberg wrote:
>         <dtml-if "sequence-index < (numStories - 1)">
>         <dtml-if "sequence-index == 0">

try these instead:
<dtml-if "_['sequence-index'] < (numStories - 1)">
<dtml-if "_['sequence-index'] == 0">

cheers,

Chris