tcms.xmlrpc.api.product module

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'})