Changeset 57:0d8b6cf41728 in ralphm-patches for roster_item.patch
- Timestamp:
- Mar 28, 2012, 1:43:02 PM (10 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roster_item.patch
r54 r57 14 14 return a `service-unavailable` stanza error. 15 15 16 diff -r 2e2717d3db8fwokkel/im.py17 --- a/wokkel/im.py Wed Oct 05 09:15:44 2011+020018 +++ b/wokkel/im.py Wed Oct 05 09:29:18 2011+020019 @@ -7,21 +7,2 5@@16 diff -r a3c50205821b wokkel/im.py 17 --- a/wokkel/im.py Wed Mar 28 13:13:06 2012 +0200 18 +++ b/wokkel/im.py Wed Mar 28 13:17:05 2012 +0200 19 @@ -7,21 +7,26 @@ 20 20 XMPP IM protocol support. 21 21 22 22 This module provides generic implementations for the protocols defined in 23 -U{RFC 3921<http:// www.xmpp.org/rfcs/rfc3921.html>} (XMPP IM).23 -U{RFC 3921<http://xmpp.org/rfcs/rfc3921.html>} (XMPP IM). 24 24 - 25 25 -All of it should eventually move to Twisted. … … 28 28 29 29 +from twisted.internet import defer 30 +from twisted.words.protocols.jabber import error 30 31 from twisted.words.protocols.jabber import jid 31 +from twisted.words.protocols.jabber import error32 32 from twisted.words.xish import domish 33 33 34 34 from wokkel.compat import IQ 35 35 from wokkel.generic import ErrorStanza, Stanza 36 -from wokkel.subprotocols import XMPPHandler 37 +from wokkel.subprotocols import IQHandlerMixin,XMPPHandler36 +from wokkel.subprotocols import IQHandlerMixin 37 from wokkel.subprotocols import XMPPHandler 38 38 39 39 NS_XML = 'http://www.w3.org/XML/1998/namespace' … … 47 47 """ 48 48 Stanza of kind presence. 49 @@ -3 49,8 +353,8 @@49 @@ -377,8 +382,8 @@ 50 50 51 51 This represents one contact from an XMPP contact list known as roster. … … 58 58 @type name: C{unicode} 59 59 @ivar subscriptionTo: Subscription state to contact's presence. If C{True}, 60 @@ -3 60,47 +364,99 @@60 @@ -388,47 +393,99 @@ 61 61 @ivar subscriptionFrom: Contact's subscription state. If C{True}, the 62 62 contact is subscribed to the presence information … … 186 186 187 187 def getRoster(self): 188 @@ -4 15,8 +471,8 @@188 @@ -443,8 +500,8 @@ 189 189 roster = {} 190 190 for element in domish.generateElementsQNamed(result.query.children, … … 197 197 return roster 198 198 199 @@ -4 37,32 +493,36 @@199 @@ -465,32 +522,36 @@ 200 200 """ 201 201 iq = IQ(self.xmlstream, 'set') … … 247 247 @type item: L{RosterItem} 248 248 """ 249 @@ - 472,6 +532,10 @@249 @@ -500,6 +561,10 @@ 250 250 """ 251 251 Called when a roster push for the removal of an item was received. … … 258 258 @type entity: L{jid.JID} 259 259 """ 260 diff -r 2e2717d3db8fwokkel/test/test_im.py261 --- a/wokkel/test/test_im.py Wed Oct 05 09:15:44 2011+0200262 +++ b/wokkel/test/test_im.py Wed Oct 05 09:29:18 2011+0200260 diff -r a3c50205821b wokkel/test/test_im.py 261 --- a/wokkel/test/test_im.py Wed Mar 28 13:13:06 2012 +0200 262 +++ b/wokkel/test/test_im.py Wed Mar 28 13:17:05 2012 +0200 263 263 @@ -7,13 +7,14 @@ 264 264
Note: See TracChangeset
for help on using the changeset viewer.