l.r.i.p.ITeamPublic(Interface) : interface documentation

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

Known subclasses: lp.registry.interfaces.webservice.ITeam

Public attributes of a Team.
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.
@invariant
def defaultRenewalPeriodIsRequiredForSomeTeams(person):
Teams may specify a default renewal period.

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.

defaultexpirationdate =
The date, according to team's default values, in which a newly approved membership will expire.
defaultrenewedexpirationdate =
The date, according to team's default values, in which a just-renewed membership will expire.
def checkInclusiveMembershipPolicyAllowed(policy='open'):
Check whether this team's membership policy can be open.

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

ParameterspolicyThe 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.
RaisesTeamMembershipPolicyErrorWhen the membership policy is not allowed to be open.
def checkExclusiveMembershipPolicyAllowed(policy='closed'):
Return true if this team's membership policy must 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.

ParameterspolicyThe 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.
RaisesTeamMembershipPolicyErrorWhen the membership policy is not allowed to be closed.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.