Changes between Version 1 and Version 2 of GenericAuthorization
- Timestamp:
- May 28, 2006, 1:42:41 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GenericAuthorization
v1 v2 22 22 23 23 == Usage == 24 24 25 === Checking a permission === 25 26 … … 54 55 {{{has_permission}}} will be implemented as a class with a {{{register}}} method and a {{{__call__(self, user, permission, object)}}} method. 55 56 56 This method is similar to Philip J. Eby's [RuleDispatch http://peak.telecommunity.com/PyCon05Talk/] and Guido van Rossum's recent work on generic/overloaded functions. See references for examples. 57 This method is similar to Philip J. Eby's [RuleDispatch http://peak.telecommunity.com/PyCon05Talk/] and Guido van Rossum's recent work on generic/overloaded functions. See references for examples. The plan is to start out with a really naive and simple implementation, if it works and performs reasonably it should probably be left simple. 58 57 59 58 60 == Roadmap ==