def accept(self, message, *args):
     if message not in self.__message2channel:
         self.notify.error('Tried to accept unregistered message %s!' %
                           message)
         return
     anyAccepting = bool(self.whoAccepts(message))
     if not anyAccepting:
         self.air.registerForChannel(self.__message2channel[message])
     Messenger.accept(self, message, *args)
Пример #2
0
    def accept(self, message, *args):
        if message not in self.__message2channel:
            self.notify.error('Tried to accept unregistered message %s!' % message)
            return

        anyAccepting = bool(self.whoAccepts(message))
        if not anyAccepting:
            self.air.registerForChannel(self.__message2channel[message])

        Messenger.accept(self, message, *args)