l.c.b.c.CodeImportEditView(CodeImportBaseView) : class documentation

Part of lp.code.browser.codeimport View In Hierarchy

View for editing code imports.

This view is registered against the target, but mostly edits the code import for that target -- the exception being that it also allows the editing of the branch whiteboard in the case of Bazaar branches. If the target has no associated code import, then the result is a 404. If the target does have a code import, then the adapters property allows the form internals to do the associated mappings.

Method initial_values Override this in your subclass if you want any widgets to have
Method initialize Show a 404 if the target has no code import.
Method adapters See LaunchpadFormView.
Method setUpFields Undocumented
Method validate See LaunchpadFormView.
Method _showButtonForStatus If the status is different, and the user is super, show button.

Inherited from CodeImportBaseView:

Method showOptionalMarker Don't show the optional marker for rcs locations.
Method setSecondaryFieldError Set the field error only if there isn't an error already.
Method _super_user Is the user an admin or member of vcs-imports?
Method _validateCVS If the user has specified cvs, then we need to make
Method _validateURL If the user has specified a url, we need to make sure that there

Inherited from LaunchpadFormView (via CodeImportBaseView):

Method __init__ Undocumented
Method render Return the body of the response.
Method extendFields Allow subclasses to extend the form fields.
Method setUpWidgets Set up the widgets using the view's form fields and the context.
Method help_links Dictionary mapping field names to help links.
Method action_url Set the default action URL for the form.
Method has_available_actions Does the view have any available actions that will render?
Method addError Add a form wide error.
Method getFieldError Get the error associated with a particular field.
Method setFieldError Set the error associated with a particular field.
Static Method validate_none Do not do any validation.
Method validate_widgets Validate the named form widgets.
Method error_count Undocumented
Method ajax_failure_handler Called by the form if validate() finds any errors.
Method validate_cancel Noop validation in case we cancel.
Method focusedElementScript Helper function to construct the script element content.
Method isSingleLineLayout Undocumented
Method isMultiLineLayout Undocumented
Method isCheckBoxLayout Undocumented
Method _processNotifications Add any notification messages to the response headers.
Method _abort Abort the form edit.
Method _validate Check all widgets and perform any custom validation.
@property
def initial_values(self):
Override this in your subclass if you want any widgets to have initial values.
def initialize(self):
Show a 404 if the target has no code import.
@property
def adapters(self):
See LaunchpadFormView.
def setUpFields(self):
Undocumented
def _showButtonForStatus(self, status):
If the status is different, and the user is super, show button.
def validate(self, data):
See LaunchpadFormView.
API Documentation for Launchpad, generated by pydoctor at 2019-07-20 00:00:03.