Made first pass at cleaning up ClientXMPP.

Added self.stream_ns to BaseXMPP.
Moved connected/disconnected events and logging to XMLStream.
This commit is contained in:
Lance Stout
2010-10-06 14:03:19 -04:00
parent a7410f2146
commit e1866ab328
4 changed files with 358 additions and 217 deletions

View File

@@ -60,7 +60,7 @@ class ComponentXMPP(BaseXMPP):
self.auto_authorize = None
self.stream_header = "<stream:stream %s %s to='%s'>" % (
'xmlns="jabber:component:accept"',
'xmlns:stream="http://etherx.jabber.org/streams"',
'xmlns:stream="%s"' % self.stream_ns,
jid)
self.stream_footer = "</stream:stream>"
self.server_host = host