(self, setting)
return settings.get(setting.name, setting.default)
returns the value of a well-known setting
returns the value of a well-known setting
returns the value of a well - known setting
def get_wksetting(self, setting):
        """returns the value of a well-known setting"""
        try:
            settings = json.loads(self.settings)
        except ValueError as ex:
            logger.warning("Decoding settings failed: {msg}".format(msg=str(ex)))
            return None

        return settings.get(setting.name, setting.default)
def get_wksetting ( self , setting ) : try : settings = json . loads ( self . settings ) except ValueError as ex : logger . warning ( "Decoding settings failed: {msg}" . format ( msg = str ( ex ) ) ) return None return settings . get ( setting . name , setting . default )