Roger Erens writes:
At 21:38 23-8-01, you wrote:
Roger Erens writes:
in taz[...] how-to http://www.zope.org/Members/tazzzzz/addZClasses about adding ZClass instances Programmatically this code ought to be in the myProduct_add constructor: <dtml-if NoRedir> <dtml-else> <!--#if DestinationURL--> <!--#call "RESPONSE.redirect( DestinationURL+'/manage_workspace')"--> <!--#else--> <!--#call "RESPONSE.redirect( URL2+'/manage_workspace')"--> <!--#/if--> </dtml-if>
I do not see the point of this: if NoRedir is true, nothing happens; if it is false, again nothing happens. Were the comments not to be used here? If "NoRedir" is false, the "RESPONSE" object is modified in such a way, that the browser will receive a "Temporarily moved" response. Usually, the browser will then make a new request with the URL passed in above as parameter to the "redirect"s.
Dieter
I guess you're right when there wouldn't have been <!-- and --> tags on each line in the else-branch.
<!--#XXX something--> is the old (server-side include) syntax of what is now <dtml-XXX something> "<!--#XXX something-->" is an SGML comment but nevertheless a command to the DTML rendering engine. Dieter