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
def addService(self, svc): JabberProtocolFactory.addService(self, svc)
def __init__(self, *args, **kw): JabberProtocolFactory.__init__(self, *args, **kw) self.protocols = []