blob: 3b6c3b11cb7f00c4f9f75951cad232ffdc4b0ef1 (
plain)
1
2
3
4
5
6
7
8
9
10
|
from base import ModuleBase
import MySQLdb
class Module(ModuleBase):
def __init__(self, manager):
ModuleBase.__init__(self, manager)
conf = manager.config['mysql']
self.db = MySQLdb.connect(host = conf['host'], user = conf['user'], passwd = conf['passwd'], db = conf['db'])
|