l.s.EditDistributionSourcePackage(AuthorizationBase) : class documentation

Part of lp.security View In Hierarchy

Known subclasses: lp.security.EditSourcePackage

No class docstring
Method checkAuthenticated Anyone who can upload a package can edit it.
Method _checkUpload Undocumented

Inherited from AuthorizationBase:

Method __init__ Undocumented
Method checkUnauthenticated See IAuthorization.checkUnauthenticated.
Method checkPermissionIsRegistered Pass through to checkPermission.
Method forwardCheckAuthenticated Forward request to another security adapter.
Method forwardCheckUnauthenticated Forward request to another security adapter.
Method _checkAndFetchNext Undocumented
def _checkUpload(self, user, archive, distroseries):
Undocumented
def checkAuthenticated(self, user):
Anyone who can upload a package can edit it.

Checking upload permission requires a distroseries; a reasonable approximation is to check whether the user can upload the package to the current series.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.