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.
Objects reference¶
This section details the objects defined in this module.
- class cots.dummy.DummyHandler¶
Bases:
cots.core.BaseProductDummy product handler.
This concrete class implements the tracking mechanism for a dummy product. So most of information are in the
coreand more particularly in theBaseProductclass 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()¶
Get product information from the remote repository.
- 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.semvermodule)- Parameters
product (BaseProduct) – The reference product (i.e. the deployed one)
- Returns
Trueif this instance is an update of the product specified by theproductparameter.- Return type
- Raises
TypeError – Parameters type mismatch.