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