Diego Rodrigo Neufert writes:
Why there isnt a dtml-while function in Zope?
How to implement it with dtml?
how to do a simple while x != y in dtml?
Because the Zope developers feared infinite loops created by
dumb users or malicious hackers in "through the web" content.
For the same reason,
Why there isnt a dtml-while function in Zope?
How to implement it with dtml?
how to do a simple while x != y in dtml?
Thanks in advance...
--
---
Diego Rodrigo Neufert
-webmaster
---
(Magic Web Design)
(email) ([EMAIL PROTECTED])
(curitiba) (pr)
Hallo Diego,
this works(tested):
dtml-in "[1,2,3,4,]"
dtml-let x=sequence-item
dtml-if "x3"
dtml-var sequence-item
/dtml-if
/dtml-let
/dtml-in
Bye
Sven
= Original Message From Diego Rodrigo Neufert
[EMAIL PROTECTED] =
Why there isnt a dtml-while function in
Diego Rodrigo Neufert wrote:
Why there isnt a dtml-while function in Zope?
DTML is not meant to be used for general purpose, logic programming.
It's a presentation and layout language. Additionally, a while
construct would allow you to create indeterminate loops:
dtml-while 1
...
Hi Diego,
DTML is set up with (some) care taken so that it can't run off with
the CPU and (possibly) take forever. Depending on the circumstances
you can probably get the effect of a 'while' using 'if'
statements. You'll probably need to convert your iteration logic so
that it looks like