4 usage: %(progname)s [args] 9 import os, sys, string, time, getopt, re
12 import neo_cgi, neo_util, neo_cs
14 from pyclearsilver
import CSPage
15 from pyclearsilver
import odb
21 import roslib.scriptutil
33 node = hdf.getValue(
"Query.node",
"")
34 hdf.setValue(
"CGI.cur.node", node)
35 webutil.set_tabs(hdf, [
"status",
"nodes"])
36 webutil.grabTopics(hdf, [
"/topics"])
38 node_data = nodeutil.node_info(node)
40 webutil.hdf_array(hdf, sorted(node_data[
"subscriptions"]),
"CGI.cur.subscriptions")
41 webutil.hdf_array(hdf, sorted(node_data[
"publications"]),
"CGI.cur.publications")
42 webutil.hdf_array(hdf, sorted(node_data[
"services"]),
"CGI.cur.services")
44 if "error" in node_data:
45 hdf.setValue(
"CGI.cur.error", node_data[
"error"])
48 return MyPage(context, pagename=
"node", nologin=
False)
51 context = CSPage.Context()
54 if __name__ ==
"__main__":