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

Part of canonical.launchpad.security View In Hierarchy

Restrict viewing of source packages.

Packages that are only published in private archives are subject to the same viewing rules as the archive (see class ViewArchive).

If the package is published in any non-private archive, then it is automatically viewable even if the package is also published in a private archive.

Method checkAuthenticated Verify that the user can view the sourcepackagerelease.
Method checkUnauthenticated Check unauthenticated users.

Inherited from AuthorizationBase:

Method __init__ Undocumented
Method checkAccountAuthenticated See IAuthorization.checkAccountAuthenticated.
def checkAuthenticated(self, user):
Verify that the user can view the sourcepackagerelease.
def checkUnauthenticated(self):
Check unauthenticated users.

Unauthenticated users can see the package as long as it's published in a non-private archive.

API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.