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. |
A participant of child is removed from parent's TeamParticipation entries if the only path from the participant to parent is via child.
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.
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.
Parameters | people | The people for which to query team participation. |
teams | Optionally, limit the participation check to these teams. |