bioweb
0.09.92
C++/Python(django)/JavaScript(angularJS) framework
Main Page
Classes
Files
File List
File Members
web
current
views.py
Go to the documentation of this file.
1
## @file current/views.py
2
# @brief current server status interface to client
3
4
"""
5
version interface module. Return database version, database connecting strings and application build version
6
"""
7
8
import
datetime
9
10
def
time(params):
11
"""server UTC time"""
12
return
str(datetime.datetime.utcnow().strftime(
"%Y-%m-%d %H:%M:%S"
))
13
14
def
get(params):
15
"""current parameters of server"""
16
return
{
17
"paramsVer"
: 1,
18
"time"
: time({})
19
}
Generated on Wed Nov 25 2015 21:50:49 for bioweb by
1.8.9.1