Actions
Task #5318
closedavoid calling MySQLdb directly to connect when sinedon.cfg is read as input kwargs
Start date:
11/16/2017
Due date:
% Done:
0%
Estimated time:
Description
Use sinedon.sqldb.connect instead because we add more configuration in sinedon.cfg that should not go into MySQLdb.Connect
dbconfig = sinedon.getConfig('leginondata') dbconnect = MySQLdb.Connect(**dbconfig) dbconnect.autocommit(True)
Becomes
dbconfig = sinedon.getConfig('leginondata') dbconnect = sinedon.sqldb.connect(**dbconfig)
Actions