admin.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 
11 import neo_cgi, neo_util, neo_cs
12 
13 from pyclearsilver import CSPage
14 from pyclearsilver import odb
15 
16 import MBPage
17 import db_webui
18 
19 import roslib
20 import roslib.scriptutil
21 #import rospy
22 import webutil
23 
25  def setup(self, hdf):
26  self.db = db_webui.initSchema()
27 
28  def display(self, hdf):
29  webutil.set_tabs(hdf, ["admin"])
30  if self.userRec.role != "admin":
31  hdf.setValue("Content", "not_admin.cs")
32 
33 def run(context):
34  return MyPage(context, pagename="admin", nologin=False)
35 
36 def main():
37  context = CSPage.Context()
38  run(context).start()
39 
40 if __name__ == "__main__":
41  main()


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