service.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 
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  service = hdf.getValue("Query.service", "")
35 
36  args = rosservice.get_service_args(service)
37  args = args.strip()
38  args = args.split(" ")
39 
40  hdf.setValue("CGI.cur.service", service)
41 
42  i = 0
43  for arg in args:
44  i = i + 1
45  hdf.setValue("CGI.cur.args.%d" % i, arg)
46 
47 
48 
49 def run(context):
50  return MyPage(context, pagename="service", nologin=False)
51 
52 def main():
53  context = CSPage.Context()
54  run(context).start()
55 
56 if __name__ == "__main__":
57  main()


webui
Author(s): Scott Hassan
autogenerated on Mon Jun 10 2019 15:51:24