l.a.w.p.SourcePackageNameWidgetBase(DistributionSourcePackagePickerWidget) : class documentation

Part of lp.app.widgets.popup View In Hierarchy

Known subclasses: lp.app.widgets.popup.UbuntuSourcePackageNameWidget, lp.bugs.browser.widgets.bugtask.BugTaskAlsoAffectsSourcePackageNameWidget, lp.bugs.browser.widgets.bugtask.BugTaskSourcePackageNameWidget, lp.bugs.browser.widgets.bugtask.FileBugSourcePackageNameWidget, lp.translations.browser.widgets.potemplate.POTemplateAdminSourcePackageNameWidget, lp.translations.browser.widgets.potemplate.POTemplateEditSourcePackageNameWidget, lp.translations.browser.widgets.translationimportqueue.TranslationImportQueueEntrySourcePackageNameWidget

A base widget for choosing a SourcePackageName.

It accepts both binary and source package names. Widgets inheriting from this must implement getDistribution.

Most views should use LaunchpadTargetWidget or DistributionSourcePackagePickerWidget instead, but this is useful in cases where the distribution is fixed in some other way.

Method __init__ Undocumented
Method getDistribution Get the distribution used for package validation.
Method _toFieldValue Undocumented

Inherited from DistributionSourcePackagePickerWidget:

Method distribution_id Undocumented

Inherited from VocabularyPickerWidget (via DistributionSourcePackagePickerWidget):

Method matches Return a list of matches (as ITokenizedTerm) to whatever the
Method formToken Undocumented
Method inputField Undocumented
Method selected_value String representation of field value associated with the picker.
Method selected_value_metadata Undocumented
Method show_widget_id Undocumented
Method config Undocumented
Method json_config Undocumented
Method extra_no_results_message Extra message when there are no results.
Method vocabulary_filters The name of the field's vocabulary.
Method vocabulary_name The name of the field's vocabulary.
Method header_text Undocumented
Method step_title_text Undocumented
Method input_id This is used to ensure the widget id contains only valid chars.
Method chooseLink Undocumented
Method extraChooseLink Undocumented
Method nonajax_uri Override in subclass to specify a non-AJAX URI for the Find link.
def __init__(self, field, vocabulary, request):
Undocumented
def getDistribution(self):
Get the distribution used for package validation.

The package name has to be published in the returned distribution.

def _toFieldValue(self, input):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.