tcms.rpc.api.component module¶
- tcms.rpc.api.component.create(values, **kwargs)[source]¶
- RPC Component.create(values)
Create new component.
- Parameters:
values (dict) – Field values for
tcms.management.models.Component**kwargs – Dict providing access to the current request, protocol, entry point name and handler instance from the rpc method
- Returns:
Serialized
tcms.management.models.Componentobject- Return type:
- Raises:
ValueError – if data validation fails
PermissionDenied – if missing management.add_component permission
Note
If
initial_owner_idorinitial_qa_owner_idare not specified or don’t exist in the database these fields are set to the user issuing the RPC request!
- tcms.rpc.api.component.filter(query)[source]¶
- 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.Componentobjects- Return type:
- tcms.rpc.api.component.update(component_id, values)[source]¶
- RPC Component.update
Update component with new values.
- Parameters:
- Returns:
Serialized
tcms.management.models.Componentobject- Return type:
- Raises:
ValueError – if data validation fails
PermissionDenied – if missing management.change_component permission