def __init__(self, db): PostImporter.__init__(self, db) config_parser = getConfig() self.start_date = config_parser.eval("DEFAULT", "start_date") self.end_date = config_parser.eval("DEFAULT", "end_date") self._data_folder = self._config_parser.eval(self.__class__.__name__, "data_folder")
def __init__(self, db): PostImporter.__init__(self, db) config_parser = getConfig() self.xmlPath = config_parser.get(self.__class__.__name__, "xml_path") # self.xmlPath = configInst.get(self.__class__.__name__,"XMDL_source_path") self.fileName = None self.CurrFolderPath = None
def __init__(self, db): PostImporter.__init__(self, db) configInst = getConfig() self._source_path = configInst.get(self.__class__.__name__, "FDL_source_path") self._file_date_format = configInst.get(self.__class__.__name__, "date_format") self._file_name = None #@review: not a field. make it local variable. self.URLforUnittest = None #@review: no code should be written especially for unittests (except the tests) self._curr_folder_path = None
def execute(self, window_start=None): logging.info("execute") logging.info("PostImporter.execute(self, window_start)") PostImporter.execute(self, window_start)
def __init__(self, db): PostImporter.__init__(self, db) self._max_number_of_threads = self._config_parser.eval(self.__class__.__name__, "max_number_of_threads") self._shorten_url_expended_url_dict = {} self._destination_url_source_url_dict = {} self.resolved_urls = []