Re: [Zope] dtml-while

2000-10-30 Thread Dieter Maurer
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,

[Zope] dtml-while

2000-10-29 Thread Diego Rodrigo Neufert
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)

RE: [Zope] dtml-while

2000-10-29 Thread hohage
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

Re: [Zope] dtml-while

2000-10-29 Thread Michel Pelletier
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 ...

Re: [Zope] dtml-while

2000-10-29 Thread Steve Spicklemire
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