l.r.i.a.IAccessPolicyGrantSource(Interface) : interface documentation

Part of lp.registry.interfaces.accesspolicy View In Hierarchy

No interface docstring
Method grant Create `IAccessPolicyGrant`s.
Method find Return the specified `IAccessPolicyGrant`s if they exist.
Method findByPolicy Return all IAccessPolicyGrant objects for the policies.
Method revoke Revoke the specified grants.
Method revokeByPolicy Revoke all IAccessPolicyGrant for the policies.
def grant(grants):
Create `IAccessPolicyGrant`s.

:param grants: a collection of
    (`IAccessPolicy`, grantee `IPerson`, grantor `IPerson`) triples
    to grant.
def find(grants):
Return the specified `IAccessPolicyGrant`s if they exist.

:param grants: a collection of (`IAccessPolicy`, grantee `IPerson`)
    pairs.
def findByPolicy(policies):
Return all IAccessPolicyGrant objects for the policies.
def revoke(grants):
Revoke the specified grants.
Parametersgrantsa collection of (IAccessPolicy, grantee IPerson) pairs.
def revokeByPolicy(policies):
Revoke all IAccessPolicyGrant for the policies.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.