def init(self): # Connect only once to DB log.info('Init: connect to DB') self.db = PostGIS(self.cfg.get_dict()) self.db.connect() # Let superclass read file list from Apache URL ApacheDirInput.init(self)
def __init__(self, configdict, section, produces=FORMAT.record): ApacheDirInput.__init__(self, configdict, section, produces) self.query = self.cfg.get('query') self.db = None