Beispiel #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'] )
Beispiel #2
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"])