[Zope] <dtml-var "python goes here!">
T.J. Mannos
MannosTJ@slcc.edu
Tue, 15 Aug 2000 11:18:21 -0600
<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: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Chris
Withers
Sent: Tuesday, August 15, 2000 9:02 AM
To: petehern@yahoo.com
Cc: zope@zope.org
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 - Zope@zope.org
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 )