l.s.v.b.l.MergePeopleView(BaseTokenView, LaunchpadView) : class documentation

Part of lp.services.verification.browser.logintoken View In Hierarchy

No class docstring
Method initialize Undocumented
Method success Indicate to the user that the token was successfully processed.
Method processForm Perform the merge.
Method _doMerge Merges a duplicate person into a target person.

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 _cancel Consume the LoginToken and set self._next_url_for_cancel.
def initialize(self):
Undocumented
def success(self, message):
Indicate to the user that the token was successfully processed.

This involves adding a notification message, and redirecting the user to their Launchpad page.

def processForm(self):
Perform the merge.
def _doMerge(self):

Merges a duplicate person into a target person.

  • Reassigns the duplicate user's primary email address to the requesting user.
  • Ensures that the requesting user has a preferred email address, and uses the newly acquired one if not.
  • If the duplicate user has no other email addresses, does the merge.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.