-
-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
requires the user to be logged in and will return the string version of Kiwi TCMS. Primarily useful for informational purposes. We're also going to use this method in some of our performance evaluations because it doesn't touch the DB and essentially returns a static value!
- Loading branch information
Showing
4 changed files
with
29 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.rpc.api.kiwitcms module | ||
============================ | ||
|
||
.. automodule:: tcms.rpc.api.kiwitcms | ||
: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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from modernrpc.auth.basic import http_basic_auth_login_required | ||
from modernrpc.core import rpc_method | ||
|
||
from tcms import __version__ | ||
|
||
__all__ = ("version",) | ||
|
||
|
||
@http_basic_auth_login_required | ||
@rpc_method(name="KiwiTCMS.version") | ||
def version(): | ||
""" | ||
.. function:: RPC KiwiTCMS.version() | ||
:return: Current version of Kiwi TCMS installation. | ||
:rtype: string | ||
""" | ||
return __version__ |
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