Exemplo n.º 1
0
 def __init__(self, config):
     """Sets up the alerter."""
     EmpAlarm.__init__(self, config)
     self.__savedir = ""
     self.__alerts  = []
     self.__root    = None 
     self.__commands = [Command("add",trigger=self.addAlarm,   help="Adds a program to be turned into an alarm."),
                        Command("rm", trigger=self.removeAlarm,help="Removes a program that ExecAlarm uses."),
                        Command("lst",trigger=self.listAlarms, help="Lists all the programs ExecAlarm has available."),
                        Command("rename",trigger=self.renameAlarm, help="Rename the name that ExecAlarm uses.")]
Exemplo n.º 2
0
 def __init__(self, conf):
     """Sets up the alerter."""
     EmpAlarm.__init__(self, conf)