Changeset 50

Show
Ignore:
Timestamp:
08/29/06 00:08:28 (2 years ago)
Author:
johnbywater
Message:

Rephrased documentation.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/dm/accesscontrol.py

    r49 r50  
    1414    Concrete access controllers inheriting this class simply involve 
    1515    domain objects holding grants in the access control scheme by 
    16     implementing the default assertAccessAuthorised() method. 
     16    extending the default assertAccessAuthorised() method. 
    1717 
    1818    Access is denied by raising the AccessNotAuthorised exception in the 
     
    2020    authorised by raising the AccessIsAuthorised exception within this method. 
    2121 
    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 
    2526    """ 
    2627     
     
    146147 
    147148class SystemAccessController(BaseAccessController): 
    148     "Introduces person role, and person system role to access controller." 
     149    "Introduces system and personal roles to access controller." 
    149150 
    150151    def assertAccessAuthorised(self):