Re: [Zope] How to skip processing the rest of a dtml document?

2000-07-21 Thread Dieter Maurer

Juan Carlos =?ISO-8859-1?Q?Coru=F1a?= writes:
 > 
 > 
 > 
 > 
 >some code that inserts a line in the order
 > 
 >some code that deletes a line from the order
 > 
 >   
 >   
 >   Error. There is no action or action is incorrect.
 >   
 >   
 >   ..The dtml document must stop here. ...
 > 
 > 
 > 
 > 
 >some code displaying the updated order
 > 
 > 
You can use the REQUEST object to store evaluation results
to be used later. E.g.:



  ... insert ...

  
  



   updated order .



Probably, Zope should have a "dtml-set" which would
allow to update a new "REQUEST.vars" directory.
Many questions in this list would go away, if assignment
could be done with an explicit dtml tag.


Dieter
  

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] How to skip processing the rest of a dtml document?

2000-07-20 Thread Robert Wohlfahrt

Hi,

> But if one of de if clauses evaluates true, I like it returns for example a
> sentences displaying an error.
Try to use something like a flag:





... do something ...



... do some othe stuff ...





Say something about expression1 or 2 ...

Say the other stuff ...



-- 
Robert Wohlfahrt ([EMAIL PROTECTED])
Tel: 0179 / 2980074 Fax: 0351 / 2880145

___
Zope maillist  -  [EMAIL PROTECTED]
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 )