On Tue, Mar 30, 2010 at 7:15 PM, W. Martin Borgert <[email protected]> wrote:
> Quoting "Greg Milby" <[email protected]>:
>>
>> *depending on the circumstance, if it's a login required, couldn't you
>> just
>> redirect to login?*
>
> It seems the web.py default is to raise SessionExpired. It is
> not clear to me how to redirect from that.

I can think of two solutions to this:

1. Try to catch the exception by using except.
2. (failing 1) Try to use a processor to process the response and do
the redirect if sessions has expired.

I think Martin's solution is a bit more elegant, though.



-- 
Branko Vukelić

Check out my blog: http://www.brankovukelic.com/
Check out my portfolio: http://www.flickr.com/photos/16889...@n04/

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to