예제 #1
0
def init():
    g["cgi"] = bwCGI()
    g["cgi"].send_header()
    g["vars"] = g["cgi"].vars()
    g["linkback"] = g["cgi"].linkback()
    g["config"] = configFile(g["config_file"]).recs()
    g["tl"] = tlFile(None, showUnknowns=True)
    g["db"] = bwDB(filename=g["config"]["db"], table=g["table_name"])
예제 #2
0
파일: db.py 프로젝트: Varsha-P/Python-Prep
def init():
    g['cgi'] = bwCGI()
    g['cgi'].send_header()
    g['vars'] = g['cgi'].vars()
    g['linkback'] = g['cgi'].linkback()
    g['config'] = configFile(g['config_file']).recs()
    g['tl'] = tlFile(None, showUnknowns = True)
    g['db'] = bwDB( filename = g['config']['db'], table = g['table_name'] )
예제 #3
0
def init():
    g['cgi'] = bwCGI()
    g['vars'] = g['cgi'].vars()
    g['config'] = configFile(g['config_file']).recs()
    g['db'] = bwDB(filename=g['config']['db'], table=g['table_name'])
예제 #4
0
def init():
    send_header()
    g['config'] = configFile(g['config_file']).recs()
    g['db'] = bwDB(filename=g['config']['db'], table=g['table_name'])
예제 #5
0
파일: jurl.py 프로젝트: nick-nie/pythonlib
def init():
    g['cgi'] = bwCGI()
    g['vars'] = g['cgi'].vars()
    g['config'] = configFile(g['config_file']).recs()
    g['db'] = bwDB(filename = g['config']['db'], table = g['table_name'])
예제 #6
0
def init():
    send_header()
    g['config'] = configFile(g['config_file']).recs()
    g['db'] = bwDB(filename=g['config']['db'], table=g['table_name'])
예제 #7
0
def init():
    g["cgi"] = bwCGI()
    g["vars"] = g["cgi"].vars()
    g["config"] = configFile(g["config_file"]).recs()
    g["db"] = bwDB(filename=g["config"]["db"], table=g["table_name"])