utils/SettingsReader.py
def read(self) -> None:
        """Actually reads and parses xml file contents.

        :return: 
        """
        #self.main.logger.debug('reading settings...')
        try:
            self.settingsTree = ET.parse(self.settingsFile)
            self.settings = self.settingsTree.getroot()
        except xml.etree.ElementTree.ParseError:
            self.main.printError()
            self.main.printToOut('ERROR: Bad settings file. Check your XML is valid.')
            return None
        except:
            self.main.printError()
            self.main.printToOut('ERROR: Parsing settings failed. Operation aborted.')
            return None

        self.main.printToOut('Settings parsed ('+self.settingsFile+').', status='ok')

        if len(self.getIntervals(block='interval', ignoreEmpty=True)) == 0:
            self.main.printToOut('WARNING: No intervals specified in settings file.')
Actually reads and parses xml file contents.

        :return: 
        
Actually reads and parses xml file contents.
Actually reads and parses xml file contents .
def read(self) -> None:
        try:
            self.settingsTree = ET.parse(self.settingsFile)
            self.settings = self.settingsTree.getroot()
        except xml.etree.ElementTree.ParseError:
            self.main.printError()
            self.main.printToOut('ERROR: Bad settings file. Check your XML is valid.')
            return None
        except:
            self.main.printError()
            self.main.printToOut('ERROR: Parsing settings failed. Operation aborted.')
            return None
        self.main.printToOut('Settings parsed ('+self.settingsFile+').', status='ok')
        if len(self.getIntervals(block='interval', ignoreEmpty=True)) == 0:
            self.main.printToOut('WARNING: No intervals specified in settings file.')
def read ( self ) -> None : try : self . settingsTree = ET . parse ( self . settingsFile ) self . settings = self . settingsTree . getroot ( ) except xml . etree . ElementTree . ParseError : self . main . printError ( ) self . main . printToOut ( 'ERROR: Bad settings file. Check your XML is valid.' ) return None except : self . main . printError ( ) self . main . printToOut ( 'ERROR: Parsing settings failed. Operation aborted.' ) return None self . main . printToOut ( 'Settings parsed (' + self . settingsFile + ').' , status = 'ok' ) if len ( self . getIntervals ( block = 'interval' , ignoreEmpty = True ) ) == 0 : self . main . printToOut ( 'WARNING: No intervals specified in settings file.' )
Actually reads and parses xml file contents.
Actually reads and parses xml file contents .
"""Actually reads and parses xml file contents.

        :return: 
        """ #self.main.logger.debug('reading settings...')
None
self