l.r.i.p.TeamMembershipPolicyChoice(Choice) : class documentation

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

A valid team membership policy.
Method constraint See IField.
Method _getTeam Return the context if it is a team or None.
Method _validate Ensure the TeamMembershipPolicy is valid for state of the team.
def _getTeam(self):
Return the context if it is a team or None.
def constraint(self, value):
See IField.
def _validate(self, value):
Ensure the TeamMembershipPolicy is valid for state of the team.

Returns True if the team can change its membership policy to the TeamMembershipPolicy, otherwise raise TeamMembershipPolicyError.

API Documentation for Launchpad, generated by pydoctor at 2019-04-24 00:00:10.