From: Christopher Arndt <chris.ar...@web.de>
Date: Thu, 24 Apr 2008 16:44:17 +0200
Local: Thurs, Apr 24 2008 8:14 pm
Subject: Re: No redirect when not enough credentials
Cecil Westerhof schrieb:
> I have been playing with TG for two days now and I must say that untill Yes, you can, but this is a feature of the identity framework that isn't > now I like it. ;-} > With the identity module you go to a login page when you do not have really documented well (i.e not at all ;-)). 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): See also HTH, Chris 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.
| ||||||||||||||