import os
import re
import datetime
-import rec10web_dbSQLite
import ConfigParser
import time
cgitb.enable()
dbpwd = getdbpath("mysql_passwd")
dbport = int(getdbpath("mysql_port"))
retdb = rec10web_dbMySQL.DB_MySQL(dbname=dbn, host=dbh, user=dbu, passwd=dbpwd, port=dbport)
- else:
- retdb = rec10web_dbSQLite.DB_SQLite(dbpath)
return retdb
def getRecDate():
dl = database.select_all_rectime()