def debug(self, msg): """ Errors.debug() msg : string """ LOGGER.debug(msg)
# ----------- # scenario #1 # ----------- if ARGS.TEXTDBDICTinput is not None: TEXTINPUT = os.path.abspath(ARGS.TEXTDBDICTinput) LOGGER.info(">>> (scenario #1) textdbdict input to be read") LOGOTHERAS_OBJECT = Logotheras() LOGGER.info(">>> (scenario #1.1) reading the source file(s)") LOGGER.info(">>> ARGS.TEXTDBDICTinput={0}".format(TEXTINPUT)) LOGOTHERAS_OBJECT.initFromTextDBDictPath(path=TEXTINPUT) else: LOGGER.debug(">>> skipping scenario #1") # ----------- # scenario #2 # ----------- if LOGOTHERAS_OBJECT is not None and ( ARGS.TEXTDBDICToutput is not None or ARGS.RSToutput is not None or ARGS.dboutput is not None ): LOGGER.info(">>> (scenario #2) updating the informations about the dictionary") if LOGOTHERAS_OBJECT.errors.number_of_errors == 0: LOGOTHERAS_OBJECT.incrementVersionNumber() VERSION = LOGOTHERAS_OBJECT.data.informations.version_number LOGGER.info(">>> (scenario #2.1) : new version ='{0}'".format(VERSION))