> so a callable named "grant_access" if found on the controller would be > called and if it returned True then the access would be granted... > fine. > > The only aspect I'd like to see happen is the "inheritance": if I > mount a resource B under a SecureResource A that requires a specific > permission I assume that the same permission will be asked for > accessing the resource B. > > Is that something you intend to have/implement ?
Yea, the idea is to hook into Object Dispatch and throw a NotAuthorized as soon as controller with a grant_access returns false. This would halt dispatch, and make subcontrollers protected. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
