-
-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
tcms.xmlrpc.api.bugsystem module | ||
================================ | ||
|
||
.. automodule:: tcms.xmlrpc.api.bugsystem | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# -*- coding: utf-8 -*- | ||
from modernrpc.core import rpc_method | ||
|
||
from tcms.testcases.models import BugSystem | ||
|
||
|
||
__all__ = ( | ||
'filter', | ||
) | ||
|
||
|
||
@rpc_method(name='BugSystem.filter') | ||
def filter(query): # pylint: disable=redefined-builtin | ||
""" | ||
.. function:: XML-RPC BugSystem.filter(query) | ||
Get list of bug systems. | ||
:param query: Field lookups for :class:`tcms.testcases.models.BugSystem` | ||
:type query: dict | ||
:return: List of serialized :class:`tcms.testcases.models.BugSystem` objects. | ||
""" | ||
return BugSystem.to_xmlrpc(query) |