[Telepathy-commits] [telepathy-salut/master] xmppstream.py: OutgoingXmppiChatStream

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Thu Nov 6 09:49:02 PST 2008


---
 tests/twisted/xmppstream.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/xmppstream.py b/tests/twisted/xmppstream.py
index d4b44eb..8e43f55 100644
--- a/tests/twisted/xmppstream.py
+++ b/tests/twisted/xmppstream.py
@@ -148,6 +148,12 @@ class OutgoingXmppStream(BaseXmlStream):
 
         self.send_header()
 
+class OutgoingXmppiChatStream(OutgoingXmppStream):
+    def send_header(self):
+        # iChat doesn't send 'to', 'from' and 'version' attributes
+        root = domish.Element((NS_STREAMS, 'stream'))
+        self.send(root.toXml(closeElement = 0, prefixes=self.prefixes))
+
 class OutgoingXmppFactory(ClientFactory):
     def __init__(self, event_function):
         self.event_func = event_function
-- 
1.5.6.5




More information about the Telepathy-commits mailing list