tests/config.py
author Radek Brich <radek.brich@devl.cz>
Fri, 15 Mar 2013 15:13:42 +0100
changeset 77 2cfef775f518
parent 49 08e4dfe1b0cb
permissions -rw-r--r--
PgManager, MyManager: Change log level of SQL queries to debug. Fix MyManager: Wrong query logged when exception occurs.

class Config(dict):
    def __init__(self, fname):
        with open(fname) as f:
            data = f.read()
        exec(data, dict(), self)