Example #1
0
    def __init__(self):
        """
		Method that corresponds to the constructor of the class.
		"""
        self.__utils = libPyUtils()
        self.__constants = Constants()
        self.__dialog = libPyDialog(self.__constants.BACKTITLE, self.mainMenu)
    def __init__(self):
        """
		Method that corresponds to the constructor of the class.
		"""
        self.__logger = libPyLog()
        self.__utils = libPyUtils()
        self.__constants = Constants()
        self.__telegram = libPyTelegram()
    def __init__(self, action_to_cancel):
        """
		Method that corresponds to the constructor of the class.

		:arg action_to_cancel: Method to be called when the user chooses the cancel option.
		"""
        self.__logger = libPyLog()
        self.__utils = libPyUtils()
        self.__constants = Constants()
        self.__action_to_cancel = action_to_cancel
        self.__dialog = libPyDialog(self.__constants.BACKTITLE,
                                    action_to_cancel)
	def __init__(self, action_to_cancel):
		"""
		Method that corresponds to the constructor of the class.

		:arg action_to_cancel: Method to be called when the user chooses the cancel option.
		"""
		self.__logger = libPyLog()
		self.__utils = libPyUtils()
		self.__constants = Constants()
		self.__action_to_cancel = action_to_cancel
		self.__dialog = libPyDialog(self.__constants.BACKTITLE, action_to_cancel)
		name_folder_rules = self.__utils.readYamlFile(self.__constants.PATH_FILE_CONFIGURATION)['name_folder_rules']
		self.__folder_alert_rules_path = self.__constants.PATH_BASE_TELK_ALERT + '/' + name_folder_rules