Changeset 165:76a61f5aa343 for wokkel/component.py
- Timestamp:
- Jan 22, 2012, 2:51:25 PM (10 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wokkel/component.py
r96 r165 15 15 from twisted.words.xish import domish 16 16 17 try:18 #from twisted.words.protocols.jabber.xmlstream import XMPPHandler19 from twisted.words.protocols.jabber.xmlstream import XMPPHandlerCollection20 except ImportError:21 #from wokkel.subprotocols import XMPPHandler22 from wokkel.subprotocols import XMPPHandlerCollection23 24 try:25 from twisted.words.protocols.jabber.xmlstream import XmlStreamServerFactory26 except ImportError:27 from wokkel.compat import XmlStreamServerFactory28 29 17 from wokkel.generic import XmlPipe 30 18 from wokkel.subprotocols import StreamManager … … 79 67 80 68 81 class InternalComponent( XMPPHandlerCollection, service.Service):69 class InternalComponent(xmlstream.XMPPHandlerCollection, service.Service): 82 70 """ 83 71 Component service that connects directly to a router. … … 92 80 93 81 def __init__(self, router, domain=None): 94 XMPPHandlerCollection.__init__(self)82 xmlstream.XMPPHandlerCollection.__init__(self) 95 83 96 84 self._router = router … … 138 126 Add a new handler and connect it to the stream. 139 127 """ 140 XMPPHandlerCollection.addHandler(self, handler)128 xmlstream.XMPPHandlerCollection.addHandler(self, handler) 141 129 142 130 if self.xmlstream: … … 323 311 324 312 325 class XMPPComponentServerFactory( XmlStreamServerFactory):313 class XMPPComponentServerFactory(xmlstream.XmlStreamServerFactory): 326 314 """ 327 315 XMPP Component Server factory. … … 341 329 return ListenComponentAuthenticator(self.secret) 342 330 343 XmlStreamServerFactory.__init__(self, authenticatorFactory)331 xmlstream.XmlStreamServerFactory.__init__(self, authenticatorFactory) 344 332 self.addBootstrap(xmlstream.STREAM_CONNECTED_EVENT, 345 333 self.makeConnection)
Note: See TracChangeset
for help on using the changeset viewer.