c.l.b.l.ValidateEmailView(BaseTokenView, LaunchpadFormView) : class documentation

Part of canonical.launchpad.browser.logintoken View In Hierarchy

Known subclasses: canonical.launchpad.browser.logintoken.ValidateTeamEmailView

No class docstring
Method initialize Undocumented
Method validate Make sure the email address this token refers to is not in use.
Method default_next_url Undocumented
Method cancel_action Undocumented
Method continue_action Mark the new email address as VALIDATED in the database.
Method markEmailAsValid Mark the given email address as valid.
Method _ensureEmail Make sure self.requester has this token's email address as one of

Inherited from BaseTokenView:

Method next_url The next URL to redirect to on successful form submission.
Method page_title The page title.
Method redirectIfInvalidOrConsumedToken If this is a consumed or invalid token redirect to the LoginToken
Method success Indicate to the user that the token was successfully processed.
Method logInPrincipalByEmail Login the principal with the given email address.
Method accountWasSuspended Return True if the person's account was SUSPENDED, otherwise False.
Method _cancel Consume the LoginToken and set self._next_url_for_cancel.
def initialize(self):
Undocumented
def validate(self, data):
Make sure the email address this token refers to is not in use.
@property
def default_next_url(self):
Undocumented
@action(_('Cancel'), 'cancel', 'validate_cancel')
def cancel_action(self, action, data):
Undocumented
@action(_('Continue'), 'continue')
def continue_action(self, action, data):
Mark the new email address as VALIDATED in the database.

If this is the first validated email of this person, it'll be marked as the preferred one.

If the requester is a team, the team's contact address is removed (if any) and this becomes the team's contact address.

def _ensureEmail(self):
Make sure self.requester has this token's email address as one of its email addresses and return it.
def markEmailAsValid(self, email):
Mark the given email address as valid.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.