| The Identity API provides #1 and #2 but not #3 because that is *so* application specific. For example, you could have the following class: class MyController(controllers.Controller): [EMAIL PROTECTED]() [EMAIL PROTECTED]( in_group( "admin" ) ) def index( self ): pass [EMAIL PROTECTED]() def anotherMethod( self ): if has_permission( "can-edit" ): pass The predicates used by the Identity framework function the same whether in a require decorator or as expressions in an if statement. All of this information lives in the database. Specifically the tg_group and tg_permission tables (at least with the default provider and model classes). On 26 Jan, 2006, at 12:45 pm, erisian wrote:
-- Jeff Watkins |
- [TurboGears] Re: TurboGears Role Based Security Stephen Thorne
- [TurboGears] Re: TurboGears Role Based Security Jeff Watkins
- [TurboGears] Re: TurboGears Role Based Security Jeff Watkins

