[Zope] Simple assignment (?)
Andy McKay
andym@ActiveState.com
Wed, 23 May 2001 15:44:38 -0700
> <dtml-call currentPrice="_['sequence-item']">
What is this meant to do? <dtml-call> does not support assignment and does
not return anything. If you are trying to print just <dtml-var
sequence-item> will do. This really looks a job for a python script, not for
dtml.
Cheers.
--
Andy McKay.
----- Original Message -----
From: "Bruce Eckel" <Bruce@EckelObjects.com>
To: <chrism@digicool.com>
Cc: <zope@zope.org>
Sent: Wednesday, May 23, 2001 3:28 PM
Subject: [Zope] Simple assignment (?)
> I'm trying to do an assignment to a variable I created with
> "let" as follows:
>
> <dtml-let pricelist="parseSeminarRegistration(price_dates)"
> currentPrice="pricelist[0][1]" >
>
> <dtml-in pricelist>
> <dtml-if sequence-key>
> <dtml-if "_.DateTime() <
> _.DateTime(_['sequence-key'])">
> <dtml-call currentPrice="_['sequence-item']">
> </dtml-if>
> </dtml-if>
> </dtml-in>
>
> The
> <dtml-call currentPrice="_['sequence-item']">
> Doesn't work, I've tried another way or two.
>
> I'm sure assignment must be straightforward, but I'm
> probably missing something obvious. Can someone enlighten?
> Thanks.
>
> Most current information can be found at:
> http://www.mindview.net/Etc/notes.html
> ===================
> Bruce Eckel http://www.BruceEckel.com
> Contains free electronic books: "Thinking in Java 2e" &
> "Thinking in C++ 2e"
> Please subscribe to my free newsletter -- just send any
> email to:
> join-eckel-oo-programming@earth.lyris.net
> My schedule can be found at:
> http://www.mindview.net/Calendar
> ===================
>
>
>
> _______________________________________________
> 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 )
>