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.Component
objectReturn type: Raises: - ValueError – if data validation fails
- PermissionDenied – if missing management.add_component permission
- values (dict) – Field values for
Note
If
initial_owner_id
orinitial_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.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.Component
objectsReturn type: list(dict)
-
-
tcms.rpc.api.component.
update
(component_id, values)[source]¶ -
RPC Component.update
Update component with new values.
Parameters: Returns: Serialized
tcms.management.models.Component
objectReturn type: Raises: - ValueError – if data validation fails
- PermissionDenied – if missing management.change_component permission
-