[Zope] arguments for myProduct_add?

Roger Erens rlwm.erens@home.nl
Fri, 24 Aug 2001 11:06:36 +0200


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.
Roger