c.l.s.DerivedAuthorization(AuthorizationBase) : class documentation

Part of canonical.launchpad.security View In Hierarchy

Known subclasses: canonical.launchpad.security.ViewSourcePackageRecipe, canonical.launchpad.security.ViewSourcePackageRecipeBuild

An Authorization that is based on permissions for other objects.

Implementations must define permission, usedfor and iter_objects. iter_objects should iterate through the objects to check permission on.

Failure on the permission check for any object causes an overall failure.

Method iter_adapters Undocumented
Method checkAuthenticated Return True if the given person has the given permission.
Method checkUnauthenticated See IAuthorization.checkUnauthenticated.

Inherited from AuthorizationBase:

Method __init__ Undocumented
Method checkAccountAuthenticated See IAuthorization.checkAccountAuthenticated.
def iter_adapters(self):
Undocumented
def checkAuthenticated(self, user):
Return True if the given person has the given permission.

This method is implemented by security adapters that have not been updated to work in terms of IAccount.

ReturnsTrue or False.
def checkUnauthenticated(self):
See IAuthorization.checkUnauthenticated.
ReturnsTrue or False.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.