l.r.i.r.IPersonRoles(Interface) : interface documentation

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

What celebrity teams a person is member of and similar helpers.

Convenience methods that remove frequent calls to ILaunchpadCelebrities
and IPerson.inTeam from permission checkers. May also be used in model
or view code.

All person celebrities in ILaunchpadCelbrities must have a matching
in_ attribute here and vice versa.
Attribute person The IPerson object that these checks refer to.
Bool in_admin Undocumented
Bool in_software_center_agent Undocumented
Bool in_bug_importer Undocumented
Bool in_bug_watch_updater Undocumented
Bool in_buildd_admin Undocumented
Bool in_commercial_admin Undocumented
Bool in_hwdb_team Undocumented
Bool in_janitor Undocumented
Bool in_katie Undocumented
Bool in_launchpad_developers Undocumented
Bool in_ppa_admin Undocumented
Bool in_ppa_key_guard Undocumented
Bool in_ppa_self_admins Undocumented
Bool in_registry_experts Undocumented
Bool in_rosetta_experts Undocumented
Bool in_ubuntu_sso Undocumented
Bool in_ubuntu_techboard Undocumented
Bool in_vcs_imports Undocumented
Method inTeam Is this person a member or the owner of team?
Method isOwner Is this person the owner of the object?
Method isDriver Is this person one of the drivers of the object?
Method isBugSupervisor Is this person the bug supervisor of the object?
Method isOneOf Is this person one of the roles in relation to the object?
person =
The IPerson object that these checks refer to.
in_admin =
Undocumented
in_software_center_agent =
Undocumented
in_bug_importer =
Undocumented
in_bug_watch_updater =
Undocumented
in_buildd_admin =
Undocumented
in_commercial_admin =
Undocumented
in_hwdb_team =
Undocumented
in_janitor =
Undocumented
in_katie =
Undocumented
in_launchpad_developers =
Undocumented
in_ppa_admin =
Undocumented
in_ppa_key_guard =
Undocumented
in_ppa_self_admins =
Undocumented
in_registry_experts =
Undocumented
in_rosetta_experts =
Undocumented
in_ubuntu_sso =
Undocumented
in_ubuntu_techboard =
Undocumented
in_vcs_imports =
Undocumented
def inTeam(team):
Is this person a member or the owner of team?

Passed through to the unproxied same method in IPersonViewRestricted.

def isOwner(obj):
Is this person the owner of the object?
def isDriver(obj):
Is this person one of the drivers of the object?

Works on objects that implement 'IHasDrivers', but will check the driver attribute otherwise.

def isBugSupervisor(obj):
Is this person the bug supervisor of the object?
def isOneOf(obj, attributes):
Is this person one of the roles in relation to the object?

Check if the person is inTeam of one of the given IPerson attributes of the object.

ParametersobjThe object to check the relation to.
attributesA list of attribute names to check with inTeam.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.