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>

and you're not allowed to loop indefinately in DTML.  It's against the
rules.  <dtml-in> does all the looping you need over a python sequence,
since DTML doesn't let you build infinite sequences, all loops

The solution to your problem is to you Python Methods.


Python does have a while construct and is indented for programming


Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to