<dtml-let complaint="'why-did-we-decide-to-use-hyphens-anyway'">?
<dtml-call "REQUEST.set('solution',
'we_should_have_used_underscores_instead')">

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chris
Withers
Sent: Tuesday, August 15, 2000 9:02 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [Zope] <dtml-var "python goes here!">


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

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to