tcms.xmlrpc.api.component module

tcms.xmlrpc.api.component.create(values, **kwargs)[source]
XML-RPC Component.create(values)

Create new component.

Parameters:values (dict) – Field values for tcms.management.models.Component
Returns:Serialized tcms.management.models.Component object
Return type:dict
Raises:PermissionDenied if missing management.add_component permission

Note

If initial_owner_id or initial_qa_owner_id are not specified or don’t exist in the database these fields are set to the user issuing the RPC request!

tcms.xmlrpc.api.component.update(component_id, values)[source]
XML-RPC Component.update

Update component with new values.

Parameters:
  • component_id (int) – PK of Component to be updated
  • values (dict) – Fields and values to be updated
Returns:

Serialized tcms.management.models.Component object

Return type:

dict

Raises:

ValueError if name is missing or empty string

Raises:

PermissionDenied if missing management.change_component permission

tcms.xmlrpc.api.component.filter(query)[source]
XML-RPC Component.filter(query)

Search and return the resulting list of components.

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