Merge branch 'master' of git://git.assembla.com/fpdb

This commit is contained in:
Worros 2008-10-11 13:36:25 +08:00
commit ac551f6535

View File

@ -30,19 +30,7 @@ except:
import fpdb_import import fpdb_import
import fpdb_db import fpdb_db
# def __init__(self, db, settings, debug=True):
# """Constructor for table_viewer"""
# self.debug=debug
# #print "start of table_viewer constructor"
# self.db=db
# self.cursor=db.cursor
# self.settings=settings
if __name__ == "__main__": if __name__ == "__main__":
failOnError=False
quiet=False
#process CLI parameters #process CLI parameters
parser = OptionParser() parser = OptionParser()
parser.add_option("-c", "--handCount", default="0", type="int", parser.add_option("-c", "--handCount", default="0", type="int",
@ -66,18 +54,5 @@ if __name__ == "__main__":
(options, sys.argv) = parser.parse_args() (options, sys.argv) = parser.parse_args()
settings={'imp-callFpdbHud':False, 'db-backend':2} settings={'imp-callFpdbHud':False, 'db-backend':2}
#self.inputFile=options.inputFile
#self.server=options.server
#self.database=options.database
#self.user=options.user
#self.password=options.password
#self.quiet=False
#self.failOnError=False
#self.minPrint=0
#self.handCount=0
importer = fpdb_import.Importer() importer = fpdb_import.Importer()
importer.import_file_dict(options, settings) importer.import_file_dict(options, settings)