[telepathy-gabble/master] gabbletest.py: make_result_iq: set the from attribute if possible
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Thu Jul 2 09:38:19 PDT 2009
---
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 13e9769..44299e3 100644
--- a/tests/twisted/gabbletest.py
+++ b/tests/twisted/gabbletest.py
@@ -29,6 +29,9 @@ NS_XMPP_BIND = 'urn:ietf:params:xml:ns:xmpp-bind'
def make_result_iq(stream, iq):
result = IQ(stream, "result")
result["id"] = iq["id"]
+ to = iq.getAttribute('to')
+ if to is not None:
+ result["from"] = to
query = iq.firstChildElement()
if query:
--
1.5.6.5
More information about the telepathy-commits
mailing list