Example #1
0
    def __init__(self, admin=False, log=False):
        if log:
            logging.basicConfig(level=logging.DEBUG)
        self.admin = admin
        self.confFilename = None
        self.confData = None

        self.seriefile = SerieList()
        self.verbosity = log
        try:
            self.confschema = jsonConfigParser.loadParserFromFile(
                myConstants.CONFIG_SCHEMA)
        except:
            raise Exception(messages.returnCode['423'].format(
                myConstants.CONFIG_SCHEMA))