l.r.b.p.ProductLicenseMixin : class documentation

Part of lp.registry.browser.product View In Hierarchy

Known subclasses: lp.registry.browser.product.ProductEditView, lp.registry.browser.product.ProjectAddStepTwo

Adds licence validation and requests reviews of licences.

Subclasses must inherit from Launchpad[Edit]FormView as well.

Requires the "product" attribute be set in the child classes' action handler.

Method validate Validate 'licenses' and 'license_info'.
def validate(self, data):
Validate 'licenses' and 'license_info'.

'licenses' must not be empty unless the product already exists and never has had a licence set.

'license_info' must not be empty if "Other/Proprietary" or "Other/Open Source" is checked.

API Documentation for Launchpad, generated by pydoctor at 2019-06-25 00:00:04.