Passed
Push — master ( 05a640...f19445 )
by Alexander
03:06
created

tcms.xmlrpc.api.bugsystem   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 8
dl 0
loc 24
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A filter() 0 12 1
1
# -*- coding: utf-8 -*-
2
from modernrpc.core import rpc_method
3
4
from tcms.testcases.models import BugSystem
5
6
7
__all__ = (
8
    'filter',
9
)
10
11
12
@rpc_method(name='BugSystem.filter')
13
def filter(query):  # pylint: disable=redefined-builtin
14
    """
15
    .. function:: XML-RPC BugSystem.filter(query)
16
17
        Get list of bug systems.
18
19
        :param query: Field lookups for :class:`tcms.testcases.models.BugSystem`
20
        :type query: dict
21
        :return: List of serialized :class:`tcms.testcases.models.BugSystem` objects.
22
    """
23
    return BugSystem.to_xmlrpc(query)
24