[telepathy-gabble/master] olpc/util.py: set 'from' attribute in the Gadget reply

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Fri Jul 3 07:29:29 PDT 2009


---
 tests/twisted/olpc/util.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/twisted/olpc/util.py b/tests/twisted/olpc/util.py
index 036965f..9f178ee 100644
--- a/tests/twisted/olpc/util.py
+++ b/tests/twisted/olpc/util.py
@@ -59,7 +59,7 @@ def announce_gadget(q, stream, disco_stanza):
     # wait for Gadget disco#info query
     event = q.expect('stream-iq', to='gadget.localhost', query_ns=ns.DISCO_INFO)
 
-    reply = elem_iq(stream, 'result', id=event.stanza['id'])(
+    reply = elem_iq(stream, 'result', id=event.stanza['id'], from_='gadget.localhost')(
         elem(ns.DISCO_INFO, 'query')(
             elem('identity', category='collaboration', type='gadget', name='OLPC Gadget')(),
             elem('feature', var=ns.OLPC_BUDDY)(),
-- 
1.5.6.5




More information about the telepathy-commits mailing list