Changeset 50
- Timestamp:
- 08/29/06 00:08:28 (2 years ago)
- Files:
-
- trunk/src/dm/accesscontrol.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/dm/accesscontrol.py
r49 r50 14 14 Concrete access controllers inheriting this class simply involve 15 15 domain objects holding grants in the access control scheme by 16 implementing the default assertAccessAuthorised() method.16 extending the default assertAccessAuthorised() method. 17 17 18 18 Access is denied by raising the AccessNotAuthorised exception in the … … 20 20 authorised by raising the AccessIsAuthorised exception within this method. 21 21 22 To check whether an object's grants include the pertaining permission, 23 call the isPermissionGranted() method with the object's grants register 24 and test the return value for boolean truth. 22 To check whether a role's grants include the pertaining permission, 23 call the isPermissionGranted() method passing the grants register as 24 the only parameter, and test the return value for boolean truth. 25 25 26 """ 26 27 … … 146 147 147 148 class SystemAccessController(BaseAccessController): 148 "Introduces person role, and person system roleto access controller."149 "Introduces system and personal roles to access controller." 149 150 150 151 def assertAccessAuthorised(self):
