def __init__(self, log, conf, name): Parser.__init__(self, log) self.name = name self.conf = conf self.sources = {} self.matches = 0 if 'sources' not in self.conf: raise Exception('Invalid configuration for '+self.name+' match') if 'workers' not in self.conf: raise Exception('Field workers not specified in '+self.name+' match') if type(self.conf['workers']) != int: self.log.error('Invalid value for field workers in '+self.name+' match, setting to 1') self.conf['workers'] = 1 if self.conf['workers'] < 1: self.log.error('Invalid value for field workers in '+self.name+' match, setting to 1') self.conf['workers'] = 1 for s in self.conf['sources'].keys(): self.add_source(s, self.conf['sources'][s])
def __init__(self, filename): Parser.__init__(self, filename, ".transaction.csv")
def __init__(self, filename): Parser.__init__(self, filename, ".date.csv")
def __init__(self, filename): Parser.__init__(self, filename, ".withdrawal.csv")
def __init__(self, filename): Parser.__init__(self, filename, ".check.csv")
def __init__(self, filename): Parser.__init__(self, filename, ".deposit.csv")
def __init__(self, filename): Parser.__init__(self, filename, ".balance.csv")