From: "Lukasz Szybalski" <szybal...@gmail.com>
Date: Thu, 24 Apr 2008 13:58:58 -0500
Local: Fri, Apr 25 2008 12:28 am
Subject: Re: [TurboGears] Re: No redirect when not enough credentials
On Thu, Apr 24, 2008 at 9:44 AM, Christopher Arndt <chris.ar...@web.de> wrote: Hello Christopher, > Cecil Westerhof schrieb: > > I have been playing with TG for two days now and I must say that untill > > With the identity module you go to a login page when you do not have > Yes, you can, but this is a feature of the identity framework that isn't > You can set the configuration setting 'identity.failure_url' to a > a) if the the user is anonymous (not logged in) > and then return different URLs depending on this info. > Example (untested): > def failure_url(): > See the code for 'turbogears.identity.exceptions' (set_identity_errors, > As a simpler, but less general alternative, you can test for the > Example (also untested): > class MyController(controllers.Controller, identity.SecureResource): Would be nice if what you wrote here was added to the .py file that has the code. http://lucasmanual.com/tgdocs/turbogears.identity.exceptions-pysrc.ht... Just wondering, what is your / TG project preference when documenting Lucas You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||