You can also do something like:

config.add_view(forbidden, context=Forbidden)



def forbidden(request):
    flash(_('Not logged in, please log in'), 'error')
    return HTTPFound(location='%s?came_from=%s' %
                    (route_url('login', request),
                    current_route_url(request)))

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to