def buildProtocol(self, addr): xs = JabberProtocolFactory.buildProtocol(self, addr) # the protocols are components, too, so we treat them like services xs.setServiceParent(self) xs.addObserver(STREAM_AUTHD_EVENT, self.streamAuthenticated, 0, xs=xs) return xs
def buildProtocol(self, addr): xs = JabberProtocolFactory.buildProtocol(self, addr) #xs.name = self.name # the protocols are components, too, so we treat them like services #xs.setServiceParent(self) return xs