l.r.m.teammembership : module documentation

Part of lp.registry.model

No module docstring
Class TeamMembership See ITeamMembership.
Class TeamMembershipSet See ITeamMembershipSet.
Class TeamParticipation Undocumented
Function find_team_participations Find the teams the given people participate in.
Function _cleanTeamParticipation Remove child from team and clean up child's subteams.
Function _fillTeamParticipation Add relevant entries in TeamParticipation for given member and team.
def _cleanTeamParticipation(child, parent):
Remove child from team and clean up child's subteams.

A participant of child is removed from parent's TeamParticipation entries if the only path from the participant to parent is via child.

def _fillTeamParticipation(member, accepting_team):
Add relevant entries in TeamParticipation for given member and team.

Add a tuple "member, team" in TeamParticipation for the given team and all of its superteams. More information on how to use the TeamParticipation table can be found in the TeamParticipationUsage spec.

def find_team_participations(people, teams=None):
Find the teams the given people participate in.

This method performs its work with at most a single database query. It first does similar checks to those performed by IPerson.in_team() and it may turn out that no database query is required at all.

ParameterspeopleThe people for which to query team participation.
teamsOptionally, limit the participation check to these teams.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.