[Zope] arguments for myProduct_add?

Dieter Maurer dieter@handshake.de
Thu, 23 Aug 2001 21:38:18 +0200 (CEST)


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