Part of lp.registry.interfaces.person View In Hierarchy
Known subclasses: lp.registry.interfaces.webservice.ITeam
Method | defaultRenewalPeriodIsRequiredForSomeTeams | Teams may specify a default renewal period. |
Attribute | defaultexpirationdate | The date, according to team's default values, in which a newly approved membership will expire. |
Attribute | defaultrenewedexpirationdate | The date, according to team's default values, in which a just-renewed membership will expire. |
Method | checkInclusiveMembershipPolicyAllowed | Check whether this team's membership policy can be open. |
Method | checkExclusiveMembershipPolicyAllowed | Return true if this team's membership policy must be open. |
The team renewal period cannot be less than 1 day, and when the renewal policy is is 'On Demand' or 'Automatic', it cannot be None.
An inclusive membership policy is OPEN or DELEGATED. A exclusive membership policy is MODERATED or RESTRICTED. An exclusive membership policy is required when: - any of the team's super teams are closed. - the team has any active PPAs - it is subscribed or assigned to any private bugs - it owns any pillars
Parameters | policy | The policy that is being checked for validity. This is an optional parameter used in the message of the exception raised when an open policy is not allowed. Sometimes though, the caller just wants to know if any open policy is allowed without having a particular policy to check. In this case, the method is called without a policy parameter being required. |
Raises | TeamMembershipPolicyError | When the membership policy is not allowed to be open. |
An inclusive membership policy is OPEN or DELEGATED. A exclusive membership policy is MODERATED or RESTRICTED. An inclusive membership policy is required when: - any of the team's sub (member) teams are open.
Parameters | policy | The policy that is being checked for validity. This is an optional parameter used in the message of the exception raised when a closed policy is not allowed. Sometimes though, the caller just wants to know if any closed policy is allowed without having a particular policy to check. In this case, the method is called without a policy parameter being required. |
Raises | TeamMembershipPolicyError | When the membership policy is not allowed to be closed. |