Main Page
Namespaces
Classes
Files
File List
src
webui
mod
webui
cgibin
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
24
class
MyPage
(
MBPage.MBPage
):
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.mod.webui.cgibin.admin.MyPage.setup
def setup(self, hdf)
Definition:
admin.py:25
webui.startcgi.start
start
Definition:
startcgi.py:4
webui.MBPage.MBPage.db
db
Definition:
MBPage.py:32
webui.MBPage.MBPage
Definition:
MBPage.py:18
webui.mod.webui.cgibin.admin.MyPage.display
def display(self, hdf)
Definition:
admin.py:28
webui.mod.webui.cgibin.admin.main
def main()
Definition:
admin.py:36
webui.mod.webui.cgibin.admin.run
def run(context)
Definition:
admin.py:33
webui.mod.webui.cgibin.admin.MyPage
Definition:
admin.py:24
webui
Author(s): Scott Hassan
autogenerated on Mon Jun 10 2019 15:51:24