Part of lp.translations.browser.translationimportqueue View In Hierarchy
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. |
ProductSeries
' templates.
Use this only if the entry is attached to a ProductSeries
.
Product
has translatable series.
Use this only if the entry is attached to a ProductSeries
.
Says nothing at all if the entry's status has not changed since upload.
Parameters | obj | The object to check, must have productseries, distroseries and sourcepackagename attributes. |
Returns | true if object and context match. |
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.
Parameters | data | The form data. |
Returns | The potemplate instance. |
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.
Parameters | data | The form data. |
Returns | The potemplate instance. |