From d537d4b69b4547814f2d01bc18ce2c472b978647 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 2 May 2010 21:18:09 +0200 Subject: Added log module --- modules/mysql.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 modules/mysql.py (limited to 'modules/mysql.py') diff --git a/modules/mysql.py b/modules/mysql.py new file mode 100644 index 0000000..3b6c3b1 --- /dev/null +++ b/modules/mysql.py @@ -0,0 +1,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']) -- cgit v1.2.3