Main Page
Namespaces
Classes
Files
File List
src
webui
mod
webui
cgibin
services.py
Go to the documentation of this file.
1
#! /usr/bin/env python
2
3
"""
4
usage: %(progname)s [args]
5
"""
6
7
import
nstart
8
9
import
os, sys, string, time, getopt, re
10
from
pyclearsilver.log
import
*
11
12
import
neo_cgi, neo_util, neo_cs
13
14
from
pyclearsilver
import
CSPage
15
from
pyclearsilver
import
odb
16
17
import
MBPage
18
import
db_webui
19
20
import
roslib
21
import
roslib.scriptutil
22
23
import
webutil
24
from
ros
import
rosservice
25
26
class
MyPage
(
MBPage.MBPage
):
27
def
setup
(self, hdf):
28
pass
29
30
def
display
(self, hdf):
31
webutil.grabTopics(hdf, [])
32
webutil.set_tabs(hdf, [
"status"
,
"services"
])
33
34
services = rosservice.get_service_list(
None
)
35
services.sort()
36
37
i = 0
38
for
service
in
services:
39
i = i + 1
40
hdf.setValue(
"CGI.cur.services.%d"
% i, service)
41
42
43
44
def
run
(context):
45
return
MyPage
(context, pagename=
"services"
, nologin=
False
)
46
47
def
main
():
48
context = CSPage.Context()
49
run
(context).
start
()
50
51
if
__name__ ==
"__main__"
:
52
main
()
webui.mod.webui.cgibin.services.main
def main()
Definition:
services.py:47
webui.startcgi.start
start
Definition:
startcgi.py:4
pyclearsilver::log
webui.MBPage.MBPage
Definition:
MBPage.py:18
webui.mod.webui.cgibin.services.MyPage.setup
def setup(self, hdf)
Definition:
services.py:27
webui.mod.webui.cgibin.services.MyPage
Definition:
services.py:26
webui.mod.webui.cgibin.services.MyPage.display
def display(self, hdf)
Definition:
services.py:30
webui.mod.webui.cgibin.services.run
def run(context)
Definition:
services.py:44
webui
Author(s): Scott Hassan
autogenerated on Mon Jun 10 2019 15:51:24