tcms.xmlrpc.api.version module

tcms.xmlrpc.api.version.create(values)[source]
XML-RPC Version.create(values)

Add new version.

Parameters:values – Field values for tcms.management.models.Version
Returns:Serialized tcms.management.models.Version object
Return type:dict
Raises:ValueError if input data validation fails
Raises:PermissionDenied if missing management.add_version permission

Example:

# Add version for specified product:
>>> Version.create({'value': 'devel', 'product': 272})
{'product': 'QE Test Product', 'id': '1106', 'value': 'devel', 'product_id': 272}
tcms.xmlrpc.api.version.filter(query)[source]
XML-RPC Version.filter(query)

Search and returns the resulting list of versions.

Parameters:query (dict) – Field lookups for tcms.management.models.Version
Returns:List of serialized tcms.management.models.Version objects
Return type:list(dict)