Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #344 (closed defect: fixed)

Opened 13 years ago

Last modified 12 years ago

SecureObject broken with new Identity framework

Reported by: bbockelm@… Owned by: anonymous
Priority: normal Milestone: 0.9
Component: Identity Version:
Severity: normal Keywords:


I'm trying to secure an object using turbogears.identity.conditions.SecureObject?. I do something like this:

adminUsers = SecureObject?( adminUsers, in_group('admin') )

However, whenever I navigate to that page, I get a IdentityManagementNotEnabledException?. This happens despite the fact that Identity management is turned on and working otherwise.

Change History

comment:1 Changed 13 years ago by anonymous

  • Milestone set to 0.9

comment:2 Changed 13 years ago by Jeff Watkins

Please provide a stack trace for this.

My guess is that CherryPy? is executing the get method before the Identity code has had a chance to process the request. If so, this WILL fail.

If this is the root of the failure, I'm not certain whether it can be fixed.

comment:3 Changed 13 years ago by Jeff Watkins

  • Status changed from new to closed
  • Resolution set to fixed

fixed in r551.

Note: See TracTickets for help on using tickets.