createdb.py
Go to the documentation of this file.
00001 #! /usr/bin/env python
00002 
00003 """
00004 usage: %(progname)s
00005 """
00006 
00007 
00008 import nstart
00009 import os, sys, string, time, getopt
00010 
00011 PKG = 'webui' # this package name
00012 import roslib; roslib.load_manifest(PKG) 
00013 
00014 from pyclearsilver.log import *
00015 
00016 import config
00017 
00018 from pyclearsilver.odb import *
00019 import db_auth
00020 
00021 def usage(progname):
00022   print __doc__ % vars()
00023 
00024 def main(argv, stdout, environ):
00025   progname = argv[0]
00026   optlist, args = getopt.getopt(argv[1:], "", ["help", "test", "debug"])
00027 
00028   testflag = 0
00029 
00030   for (field, val) in optlist:
00031     if field == "--help":
00032       usage(progname)
00033       return
00034     elif field == "--debug":
00035       debugfull()
00036     elif field == "--test":
00037       testflag = 1
00038 
00039   if testflag:
00040     test()
00041     return
00042 
00043   db = db_auth.initSchema(create=1)
00044 
00045 
00046 if __name__ == "__main__":
00047   main(sys.argv, sys.stdout, os.environ)
00048 
00049   
00050   


webui
Author(s): Scott Hassan/hassan@willowgarage.com
autogenerated on Sat Dec 28 2013 17:47:58