[Zope] Stupid DTML Question
G.Plivna@itsystems.lv
G.Plivna@itsystems.lv
Mon, 1 Nov 1999 10:51:55 +0200
Yeah, this was a question for two hours for me to seek out it in zope
documentation and I found it only in an example
Maybe someone can put this simple question in a little bit more reachable
place?
Gints
"Dr. Ross Lazarus" <rossl@med.usyd.edu.au> on 99.11.01 05:40:46
To: jwh@allencreek.com, zope@zope.org
cc: (bcc: Gints Plivna/Itsystems)
Subject: Re: [Zope] Stupid DTML Question
Sure - try this in a dtml method (tested for a change !!)
<dtml-call "REQUEST.set('flag',0)">
Flag is <dtml-var flag> <br>
<dtml-call "REQUEST.set('flag',1)">
Flag is <dtml-var flag> <br>
"james w. howe" <jw-@allencreek.com> wrote:
original article:http://www.egroups.com/group/zope/?start=15942
> Is there a way in a DTML method to create a new variable, assigning it an
> initial value, and then change the value later? Something like:
>
> flag = false
> if some condition
> flag = true
>
> if flag
> do something
> else
> do something else.
--
Dr Ross Lazarus
Associate Professor and Sub-Dean for Information Technology
Faculty of Medicine, Room 126A, A27, University of Sydney,
Camperdown, NSW 2006, Australia
Tel: (+61 2) 93514429 Mobile: +61414872482
Fax: (+61 2) 93516646 Email: rossl@med.usyd.edu.au
http://www.health.usyd.edu.au/people/rossl.htm
_______________________________________________
Zope maillist - Zope@zope.org
http://www.zope.org/mailman/listinfo/zope
(Related lists - please, no cross posts or HTML encoding!
To receive general Zope announcements, see:
http://www.zope.org/mailman/listinfo/zope-announce
For developer-specific issues, zope-dev@zope.org -
http://www.zope.org/mailman/listinfo/zope-dev )