[Telepathy-commits] [telepathy-gabble/master] gabbletest.py: if root element is passed to streamStarted, copy ID from it to xmlstream session ID for compatibility with Twisted Words 8.0
Dafydd Harries
dafydd.harries at collabora.co.uk
Tue Aug 19 10:52:08 PDT 2008
20080503190128-c9803-23c7613bda17cb257a365d23cc26bf3932a6bc3f.gz
---
tests/twisted/gabbletest.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/tests/twisted/gabbletest.py b/tests/twisted/gabbletest.py
index 8ba653a..2471e01 100644
--- a/tests/twisted/gabbletest.py
+++ b/tests/twisted/gabbletest.py
@@ -42,6 +42,9 @@ class JabberAuthenticator(xmlstream.Authenticator):
xmlstream.Authenticator.__init__(self)
def streamStarted(self, root=None):
+ if root:
+ self.xmlstream.sid = root.getAttribute('id')
+
self.xmlstream.sendHeader()
self.xmlstream.addOnetimeObserver(
"/iq/query[@xmlns='jabber:iq:auth']", self.initialIq)
--
1.5.6.3
More information about the Telepathy-commits
mailing list