Mike, you should be able to derive from identity.SecureResource and
define a require attribute at the class level.
For example:
class MySecureController( turbogears.Controller,
identity.SecureResource ):
require= identity.in_group( "admin" )
# etc...
On 28 Mar, 2006, at 8:24 pm, Mike Kent wrote:
>
> I've been trying to get login protection for a controller, rather than
> for a method of the controller. I've read the IdentityManagement page
> on the wiki, which addresses this, but the example code as given is
> not
> getting the desired results. I never get a login prompt, so its just
> as though the controller is unprotected by a login.
>
> Any pointers to how to do this?
>
>
>
--
Jeff Watkins
[EMAIL PROTECTED]
"We're growing the government at a pace that makes Democrats look
thrifty."
-- Senator Lindsey Graham (R South Carolina)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" 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/turbogears-trunk
-~----------~----~----~----~------~----~------~--~---