l.r.b.t.TeamJoinMixin : class documentation

Part of lp.registry.browser.teamjoin View In Hierarchy

Known subclasses: lp.registry.browser.person.PersonIndexView, lp.registry.browser.team.TeamIndexView, lp.registry.browser.team.TeamJoinView, lp.registry.browser.team.TeamLeaveView

Mixin class for views related to joining teams.
Method user_can_subscribe_to_list Can the prospective member subscribe to this team's mailing list?
Method user_is_subscribed_to_list Is the user subscribed to the team's mailing list?
Method team_has_mailing_list Is the team mailing list available for subscription?
Method user_is_active_member Return True if the user is an active member of this team.
Method user_is_proposed_member Return True if the user is a proposed member of this team.
Method user_can_request_to_leave Return true if the user can request to leave this team.
@property
def user_can_subscribe_to_list(self):
Can the prospective member subscribe to this team's mailing list?

A user can subscribe to the list if the team has an active mailing list, and if they do not already have a subscription.

@property
def user_is_subscribed_to_list(self):
Is the user subscribed to the team's mailing list?

Subscriptions hang around even if the list is deactivated, etc.

It is an error to ask if the user is subscribed to a mailing list that doesn't exist.

@property
def team_has_mailing_list(self):
Is the team mailing list available for subscription?
@property
def user_is_active_member(self):
Return True if the user is an active member of this team.
@property
def user_is_proposed_member(self):
Return True if the user is a proposed member of this team.
@property
def user_can_request_to_leave(self):
Return true if the user can request to leave this team.

A given user can leave a team only if they're an active member.

API Documentation for Launchpad, generated by pydoctor at 2020-10-01 00:00:09.