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

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

Widget for selecting a recipe owner.

The current user and the base source owner are suggested.

Static Method _getSuggestions Suggest the branch owner and current user.
Static Method _valueDisplayname Provide a specialized displayname for Persons
Method _autoselectOther Select "other" on click.

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.
Class Method _generateSuggestionVocab Generate a vocabulary for the suggestions.
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.
Method _renderSuggestionLabel Render a label for the option based on a branch.

Inherited from LaunchpadRadioWidget (via SuggestionWidget):

Method _renderItem Undocumented
Method _div Undocumented
@staticmethod
def _getSuggestions(branch):
Suggest the branch owner and current user.
@staticmethod
def _valueDisplayname(value):
Provide a specialized displayname for Persons
def _autoselectOther(self):
Select "other" on click.
API Documentation for Launchpad, generated by pydoctor at 2019-12-14 00:00:05.