[Zope] redirecting from within an access rule

Dieter Maurer dieter@handshake.de
Fri, 22 Jun 2001 22:54:55 +0200 (CEST)


Zopista writes:
 > Read the minor notes at the bottom of the Site Access docs:
 > http://www.zope.org/Members/4am/SiteAccess2/vhosting
 > 
 > "The return value of an Access Rule is ignored and discarded. This allows
 > embedded string comments such as in the examples above, and the use of
 > <dtml-return " 'ignored' "> to exit the Rule. It also means that if you want
 > to redirect within an Access Rule, you must use <dtml-raise type="Redirect">
 > instead of "RESPONSE.redirect()"
Do you understand, why "RESPONSE.redirect()" does not work?
It does not depend on a return value....


Dieter