Re: [Zope] How to skip processing the rest of a dtml document?
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?
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 )
[Zope] How to skip processing the rest of a dtml document?
Hello all, I`m creating a dtml document with some if clauses embedded that returns a html page. But if one of de if clauses evaluates true, I like it returns for example a sentences displaying an error. Example code: 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 The evaluation of ac must be in the HEAD tag. If ac doesn't exists then the order is displayed. Muy atentamente, Juan Carlos CoruñaDirector de Informática y Sistemas[EMAIL PROTECTED]UMD S.A.UMD Bilbao, Oficina Central-HeadquartersRibera de Elorrieta 748015 BILBAOTel: 902 128 256 / 94 476 29 93Fax: +34 94 475 07 57http://www.umd.es