auth/createdb.py
Go to the documentation of this file.
1 #! /usr/bin/env python
2 
3 """
4 usage: %(progname)s
5 """
6 
7 
8 import nstart
9 import os, sys, string, time, getopt
10 
11 PKG = 'webui' # this package name
12 import roslib; roslib.load_manifest(PKG)
13 
14 from pyclearsilver.log import *
15 
16 import config
17 
18 from pyclearsilver.odb import *
19 import db_auth
20 
21 def usage(progname):
22  print __doc__ % vars()
23 
24 def main(argv, stdout, environ):
25  progname = argv[0]
26  optlist, args = getopt.getopt(argv[1:], "", ["help", "test", "debug"])
27 
28  testflag = 0
29 
30  for (field, val) in optlist:
31  if field == "--help":
32  usage(progname)
33  return
34  elif field == "--debug":
35  debugfull()
36  elif field == "--test":
37  testflag = 1
38 
39  if testflag:
40  test()
41  return
42 
43  db = db_auth.initSchema(create=1)
44 
45 
46 if __name__ == "__main__":
47  main(sys.argv, sys.stdout, os.environ)
48 
49 
50 
def usage(progname)
def main(argv, stdout, environ)


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