[Zope] Catch Unauthorized exception and internal redirect to login DTML doc

Paul Winkler pw_lists@slinkp.com
Thu, 30 May 2002 01:30:22 -0400


On Thu, May 30, 2002 at 12:07:41PM +1000, David K. Trudgett wrote:
> How can I get Zope to do an internal redirect to my login form when an
> Unauthorized exception is generated?

either of these:

RESPONSE.redirect("my_url")
REQUEST['RESPONSE'].redirect("my_url")

I also recall that there's a second optional arg to redirect,
called lock, which is either true or false and I forget
what it's for offhand.

-- 

Paul Winkler
home:  http://www.slinkp.com
"Muppet Labs, where the future is made - today!"