l.a.w.s.TargetGitRepositoryWidget(SuggestionWidget) : class documentation

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

Widget for selecting a target Git repository.

The default repository for a new Git merge proposal should be the default repository for the target if there is one.

Also in the initial radio button selector are other repositories for the target that the repository owner has specified as target repositories for other merge proposals.

Finally there is an "other" button that gets the user to use the normal branch selector.

Static Method _generateSuggestionVocab Generate the vocabulary for the radio buttons.
Method _renderSuggestionLabel Render a label for the option based on a repository.
Method _autoselectOther Select "other" on keypress.

Inherited from SuggestionWidget:

Method __init__ Undocumented
Method hasInput Is there any input for the widget.
Method getInputValue Return the branch defined by the input value.
Method setRenderedValue This widget does not support setting the value.
Method renderItems Render the items for the selector.
Method __call__ Don't render the radio buttons if only one choice.
Method _shouldRenderSuggestions Return True if suggestions should be rendered.
Method _optionId Undocumented
Method _otherId Return the id of the "Other" option.
Method _toFieldValue Convert the form value into the target value.
Method _renderLabel Render a label for the option with the specified index.
Static Method _valueDisplayname Return the displayname for a value.

Inherited from LaunchpadRadioWidget (via SuggestionWidget):

Method _renderItem Undocumented
Method _div Undocumented
@staticmethod
def _generateSuggestionVocab(context, full_vocabulary):
Generate the vocabulary for the radio buttons.

The generated vocabulary contains the default repository for the target if there is one, and also any other repositories that the user has specified recently as a target for a proposed merge.

def _renderSuggestionLabel(self, repository, index):
Render a label for the option based on a repository.
def _autoselectOther(self):
Select "other" on keypress.
API Documentation for Launchpad, generated by pydoctor at 2019-12-11 00:00:05.