COT.commands.edit_product module

Module for editing product information in a VM description.


COTEditProduct Edit product, vendor, and version information strings.
class COTEditProduct(ui)[source]

Bases: COT.commands.command.ReadWriteCommand

Edit product, vendor, and version information strings.

Inherited attributes: ui, package, output

Attributes: product_class product vendor version, full_version product_url vendor_url application_url


Instantiate this command with the given UI.

Parameters:ui (UI) -- User interface instance.

Create 'edit-product' CLI subparser.


Check whether the module is ready to run().

Returns:tuple -- (True, ready_message) or (False, reason_why_not)

Do the actual work of this command.

Raises:InvalidInputError -- if ready_to_run() reports False
application_url = None

Application URL string.

full_version = None

Long version string.

product = None

Product description string.

product_class = None

Product class identifier.

product_url = None

Product URL string.

vendor = None

Vendor string.

vendor_url = None

Vendor URL string.

version = None

Short version string.