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

Part of canonical.launchpad.security View In Hierarchy

Known subclasses: canonical.launchpad.security.ViewSourcePackagePublishingHistory

Restrict viewing of private archives.

Only admins or members of a private team can view the archive.

Method checkAuthenticated Verify that the user can view the archive.
Method checkUnauthenticated Unauthenticated users can see the PPA if it's not private.

Inherited from AuthorizationBase:

Method __init__ Undocumented
Method checkAccountAuthenticated See IAuthorization.checkAccountAuthenticated.
def checkAuthenticated(self, user):
Verify that the user can view the archive.

Anyone can see a public and enabled archive.

Only Launchpad admins and uploaders can view private or disabled archives.

def checkUnauthenticated(self):
Unauthenticated users can see the PPA if it's not private.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.