Part of lp.app.widgets.suggestion View In Hierarchy
The default branch for a new branch merge proposal should be the branch associated with the development focus series if there is one (that isn't an import branch).
Also in the initial radio button selector are other branches for the product that the branch owner has specified as target branches 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 branch.|
|Method||_autoselectOther||Select "other" on keypress.|
Inherited from SuggestionWidget:
|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||_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.|
The generated vocabulary contains the branch associated with the development series of the product if there is one, and also any other branches that the user has specified before as a target for a proposed merge.