c.l.b.w.BranchPopupWidget(VocabularyPickerWidget) : class documentation

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

Custom popup widget for choosing branches.
Method getBranchNameFromURL Return a branch name based on url.
Method getPerson Return the person in the context, if any.
Method getProduct Return the product in the context, if there is one.
Method makeBranchFromURL Make a mirrored branch for url.
Method _toFieldValue Undocumented

Inherited from VocabularyPickerWidget:

Method matches Return a list of matches (as ITokenizedTerm) to whatever the
Method formToken Undocumented
Method inputField Undocumented
Method suffix Undocumented
Method show_widget_id Undocumented
Method extra_no_results_message Extra message when there are no results.
Method vocabulary_name The name of the field's vocabulary.
Method chooseLink Undocumented
Method nonajax_uri Override in subclass to specify a non-AJAX URI for the Find link.
def getBranchNameFromURL(self, url):
Return a branch name based on url.

The name is based on the last path segment of the URL. If there is already another branch of that name on the product, then we'll try to find a unique name by appending numbers.

def getPerson(self):
Return the person in the context, if any.
def getProduct(self):
Return the product in the context, if there is one.
def makeBranchFromURL(self, url):
Make a mirrored branch for url.

The product and owner of the branch are derived from information in the launchbag. The name of the branch is derived from the last segment of the URL and is guaranteed to be unique for the product.

ParametersurlThe URL to mirror.
ReturnsAn IBranch.
def _toFieldValue(self, form_input):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.