예제 #1
0
 def addChannel(self, channel):
     result = True
     if channel not in self.__channels:
         channel.setClientID(genClientID4Channel(channel))
         self.__channels.append(channel)
     else:
         LOG_ERROR('Channel already exists in storage', channel)
         result = False
     return result
예제 #2
0
 def addChannel(self, channel):
     result = True
     if channel not in self.__channels:
         channel.setClientID(genClientID4Channel(channel))
         self.__channels.append(channel)
     else:
         LOG_ERROR('Channel already exists in storage', channel)
         result = False
     return result