tcms.xmlrpc.api.product module

tcms.xmlrpc.api.product.create(values)[source]
XML-RPC Product.create(values)

Create a new Product object and store it in the database.

Parameters:values (dict) – Field values for tcms.management.models.Product
Returns:Serialized tcms.management.models.Product object
Return type:dict
Raises:PermissionDenied if missing management.add_product permission
tcms.xmlrpc.api.product.filter(query)[source]
XML-RPC Product.filter(query)

Perform a search and return the resulting list of products.

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

Example:

# Get all of products named 'Red Hat Enterprise Linux 5'
>>> Product.filter({'name': 'Red Hat Enterprise Linux 5'})