l.r.i.p.IPersonSpecialRestricted(Interface) : interface documentation

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

Known subclasses: lp.registry.interfaces.webservice.IPerson

IPerson methods that require launchpad.Special permission to use.
Method canDeactivate Verify we safely deactivate this user account.
Method preDeactivate Perform the easy work in deactivating a user.
Method deactivate Deactivate this person's Launchpad account.
Method reactivate Reactivate this person and its account.
Method canAccess True if this person can access the given attribute of the object.
Method canWrite True if this person can write the given attribute of the object.
def canDeactivate():
Verify we safely deactivate this user account.
ReturnsA possibly empty list which contains error messages.
def preDeactivate(comment):
Perform the easy work in deactivating a user.
def deactivate(comment=None, validate=True, pre_deactivate=True):

Deactivate this person's Launchpad account.

Deactivating an account means:
  • Removing the user from all teams they are a member of;
  • Changing all of their email addresses' status to NEW;
  • Revoking Code of Conduct signatures of that user;
  • Reassigning bugs/specs assigned to that user;
  • Changing the ownership of products/projects/teams owned by that user.
ParameterscommentAn explanation of why the account status changed.
validateRun validation checks.
def reactivate(comment, preferred_email):
Reactivate this person and its account.

Set the account status to ACTIVE, and update the preferred email address.

If the person's name contains a -deactivatedaccount suffix (usually added by IPerson.deactivate(), it is removed.

ParameterscommentAn explanation of why the account status changed.
preferred_emailThe EmailAddress to set as the account's preferred email address. It cannot be None.
def canAccess(obj, attribute):
True if this person can access the given attribute of the object.
ParametersobjThe object to be checked.
attributesThe name of an attribute to check.
ReturnsTrue if the person can access the attribute of the given object, else False.
def canWrite(obj, attribute):
True if this person can write the given attribute of the object.
ParametersobjThe object to be checked.
attributeThe name an attribute to check.
ReturnsTrue if the person can change the attribute of the given object, else False.
API Documentation for Launchpad, generated by pydoctor at 2019-04-25 00:00:17.