l.r.b.p.RestrictedMembershipsPersonView(LaunchpadView) : class documentation

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

Secure access to team membership information for a person.

This class checks that the logged-in user has access to view all the teams that these attributes and functions return.

Method getLatestApprovedMembershipsForPerson Returns a list of teams the person has recently joined.
Method teams_with_icons Returns list of teams with custom icons.
Method administrated_teams Return the list of teams administrated by the person.
Method userCanViewMembership Return true if the user can view a team's membership.
def getLatestApprovedMembershipsForPerson(self):
Returns a list of teams the person has recently joined.

Private teams are filtered out if the user is not a member of them.

@property
def teams_with_icons(self):
Returns list of teams with custom icons.

These are teams that the person is an active member of. Private teams are filtered out if the user is not a member of them.

@property
def administrated_teams(self):
Return the list of teams administrated by the person.

The user must be an administrator of the team, and the team must be public.

def userCanViewMembership(self):
Return true if the user can view a team's membership.

Only launchpad admins and team members can view the private membership. Anyone can view a public team's membership.

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