l.t.b.t.TranslationImportQueueEntryView(LaunchpadFormView) : class documentation

Part of lp.translations.browser.translationimportqueue View In Hierarchy

The view part of admin interface for the translation import queue.
Method schema See LaunchpadFormView.
Method initial_values Initialize some values on the form, when it's possible.
Method cancel_url See LaunchpadFormView.
Method referrer_url Undocumented
Method import_target The entry's ProductSeries or SourcePackage.
Method productseries_templates_link Return link to ProductSeries' templates.
Method product_translatable_series Summarize whether Product has translatable series.
Method status_change_date Show date of last status change.
Method next_url See LaunchpadFormView.
Method initialize Remove some fields based on the entry handled.
Method validate Extra validations for the given fields.
Method change_action Process the form we got from the submission.
Method js_domain_mapping Return JS code mapping templates' names to translation domains.
Method _composeProductSeriesLink Produce HTML to link to productseries.
Method _checkProductOrPackage Check if the given object is linked to the same productseries
Method _getPOTemplateSubset Undocumented
Method _findObjectionToFilePath Return textual objection, if any, to setting this file path.
Method _validatePath Should the entry's path be updated?
Method _validatePOT Undocumented
Method _validatePO Undocumented
Method _changeActionPOT Process form for PO template files.
Method _changeActionPO Process form for PO data files.
Method _change_action Private function to be called by the doctest.

Inherited from LaunchpadFormView:

Method __init__ Undocumented
Method render Return the body of the response.
Method extendFields Allow subclasses to extend the form fields.
Method setUpFields Undocumented
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 adapters Provide custom adapters for use when setting up the widgets.
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 showOptionalMarker Should the (Optional) marker be shown?
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 schema(self):
See LaunchpadFormView.
@property
def initial_values(self):
Initialize some values on the form, when it's possible.
@property
def cancel_url(self):
See LaunchpadFormView.
@property
def referrer_url(self):
Undocumented
@property
def import_target(self):
The entry's ProductSeries or SourcePackage.
@property
def productseries_templates_link(self):
Return link to ProductSeries' templates.

Use this only if the entry is attached to a ProductSeries.

def _composeProductSeriesLink(self, productseries):
Produce HTML to link to productseries.
@property
def product_translatable_series(self):
Summarize whether Product has translatable series.

Use this only if the entry is attached to a ProductSeries.

@property
def status_change_date(self):
Show date of last status change.

Says nothing at all if the entry's status has not changed since upload.

@property
def next_url(self):
See LaunchpadFormView.
def initialize(self):
Remove some fields based on the entry handled.
def _checkProductOrPackage(self, obj):
Check if the given object is linked to the same productseries or sourcepackage as the context.
ParametersobjThe object to check, must have productseries, distroseries and sourcepackagename attributes.
Returnstrue if object and context match.
def _getPOTemplateSubset(self, sourcepackagename):
Undocumented
def _findObjectionToFilePath(self, file_type, path):
Return textual objection, if any, to setting this file path.
def _validatePath(self, file_type, path):
Should the entry's path be updated?
def _validatePOT(self, data):
Undocumented
def _validatePO(self, data):
Undocumented
def validate(self, data):
Extra validations for the given fields.
def _changeActionPOT(self, data):
Process form for PO template files.

PO template specific processing. Creates a new potemplate entry in the db if none exists with the given name. Updates the queue entry's path if it was changed.

ParametersdataThe form data.
ReturnsThe potemplate instance.
def _changeActionPO(self, data):
Process form for PO data files.

PO file specific processing. Creates a new pofile entry in the db if no matching one exists. Updates the queue entry's path if it was changed.

ParametersdataThe form data.
ReturnsThe potemplate instance.
@action('Approve')
def change_action(self, action, data):
Process the form we got from the submission.
def _change_action(self, data):
Private function to be called by the doctest.
@property
def js_domain_mapping(self):
Return JS code mapping templates' names to translation domains.
API Documentation for Launchpad, generated by pydoctor at 2019-07-19 00:00:17.