l.r.b.t.TeamMembershipEditView(LaunchpadView) : class documentation

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

No class docstring
Method __init__ Undocumented
Method label Undocumented
Method isActive Undocumented
Method isInactive Undocumented
Method isAdmin Undocumented
Method isProposed Undocumented
Method isDeclined Undocumented
Method isExpired Undocumented
Method isDeactivated Undocumented
Method isInvited Undocumented
Method isInvitationDeclined Undocumented
Method adminIsSelected Whether the admin radiobutton should be selected.
Method adminIsNotSelected Whether the not-admin radiobutton should be selected.
Method expiresIsSelected Whether the expiration date radiobutton should be selected.
Method neverExpiresIsSelected Whether the never-expires radiobutton should be selected.
Method canChangeExpirationDate Return True if the logged in user can change the expiration date of
Method membershipExpires Return True if this membership is scheduled to expire one day.
Method processForm Undocumented
Method processActiveMember Undocumented
Method processProposedMember Undocumented
Method processInactiveMember Undocumented
Method _setMembershipData Set all data specified on the form, for this TeamMembership.
Method _getExpirationDate Return a datetime with the expiration date selected on the form.
def __init__(self, context, request):
Undocumented
@property
def label(self):
Undocumented
def isActive(self):
Undocumented
def isInactive(self):
Undocumented
def isAdmin(self):
Undocumented
def isProposed(self):
Undocumented
def isDeclined(self):
Undocumented
def isExpired(self):
Undocumented
def isDeactivated(self):
Undocumented
def isInvited(self):
Undocumented
def isInvitationDeclined(self):
Undocumented
def adminIsSelected(self):
Whether the admin radiobutton should be selected.
def adminIsNotSelected(self):
Whether the not-admin radiobutton should be selected.
def expiresIsSelected(self):
Whether the expiration date radiobutton should be selected.
def neverExpiresIsSelected(self):
Whether the never-expires radiobutton should be selected.
def canChangeExpirationDate(self):
Return True if the logged in user can change the expiration date of this membership.

Team administrators can't change the expiration date of their own membership.

def membershipExpires(self):
Return True if this membership is scheduled to expire one day.
def processForm(self):
Undocumented
def processActiveMember(self):
Undocumented
def processProposedMember(self):
Undocumented
def processInactiveMember(self):
Undocumented
def _setMembershipData(self, status):
Set all data specified on the form, for this TeamMembership.

Get all data from the form, together with the given status and set them for this TeamMembership object.

Returns True if we successfully set the data, False otherwise. Callsites should not commit the transaction if we return False.

def _getExpirationDate(self):
Return a datetime with the expiration date selected on the form.

Raises ValueError if the date selected is invalid. The use of that exception is unusual but allows us to present a consistent API to the caller, who needs to check only for that specific exception.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.