cots.dummy – Dummy Product Handler

This module is a dummy product handler. It provides as an example of implementation.

Public Classes

This module has only one public class.

DummyHandler

Objects reference

This section details the objects defined in this module.

class cots.dummy.DummyHandler

Bases: cots.core.BaseProduct

Dummy product handler.

This concrete class implements the tracking mechanism for a dummy product. So most of information are in the core and more particularly in the BaseProduct class documentation. The information below focuses on the added value of this class.

Overridden Methods

This class is a concrete class, so the overridden methods are listed below in alphabetical order.

get_origin

is_update

get_origin()

Get product information from the remote repository.

Returns

True if the download of the file went well. In case of failure, the members are not modified and an error log is written.

Return type

bool

Raises

TypeError – Parameters type mismatch.

is_update(product)

Return if this instance is an update of product.

This method compare the version of the two product, and return the comparison result. The version numbers used by the editor are compliant with the semantic versioning specification 2.0.0 (see support.semver module)

Parameters

product (BaseProduct) – The reference product (i.e. the deployed one)

Returns

True if this instance is an update of the product specified by the product parameter.

Return type

bool

Raises

TypeError – Parameters type mismatch.