Changeset 54:03ec57713c90 in ralphm-patches
- Timestamp:
- Nov 2, 2011, 9:36:54 AM (11 years ago)
- Branch:
- default
- Files:
-
- 7 added
- 5 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
roster_item.patch
r50 r54 1 diff -r c103529d9f46 wokkel/im.py 2 --- a/wokkel/im.py Wed May 25 20:24:36 2011 +0200 3 +++ b/wokkel/im.py Wed May 25 20:26:47 2011 +0200 1 Clean up of RosterItem and RosterClientProtocol. 2 3 `RosterItem`: 4 * Renamed attributes `jid` and `ask` to `entity` and 5 `pendingOut` respectively. 6 * Can represent roster items to be removed or that have been removed. 7 * Now has `fromElement` and `toElement` methods. 8 9 `RosterClientProtocol`: 10 11 * Roster returned from `getRoster` is now indexed by `JID`s (instead of 12 the `unicode` representation of the JID. 13 * `onRosterSet` and `onRosterRemove` can raise `RosterPushIgnored` to 14 return a `service-unavailable` stanza error. 15 16 diff -r 2e2717d3db8f wokkel/im.py 17 --- a/wokkel/im.py Wed Oct 05 09:15:44 2011 +0200 18 +++ b/wokkel/im.py Wed Oct 05 09:29:18 2011 +0200 4 19 @@ -7,21 +7,25 @@ 5 20 XMPP IM protocol support. … … 243 258 @type entity: L{jid.JID} 244 259 """ 245 diff -r c103529d9f46wokkel/test/test_im.py246 --- a/wokkel/test/test_im.py Wed May 25 20:24:362011 +0200247 +++ b/wokkel/test/test_im.py Wed May 25 20:26:472011 +0200260 diff -r 2e2717d3db8f wokkel/test/test_im.py 261 --- a/wokkel/test/test_im.py Wed Oct 05 09:15:44 2011 +0200 262 +++ b/wokkel/test/test_im.py Wed Oct 05 09:29:18 2011 +0200 248 263 @@ -7,13 +7,14 @@ 249 264 -
roster_item_more.patch
r50 r54 1 1 # HG changeset patch 2 # Parent 2741eaf2b765b6b175a9da29669c23ce13e2a14c 2 # Parent a8623e33ce6e62e39e0049451c5f65016c8b30b7 3 Record sender on received roster sets to support alternative roster sources. 3 4 4 diff -r 2741eaf2b765 wokkel/im.py 5 --- a/wokkel/im.py Wed May 25 20:26:47 2011 +0200 6 +++ b/wokkel/im.py Wed May 25 20:27:04 2011 +0200 5 TODO: roster item removal notifications. 6 7 diff -r a8623e33ce6e wokkel/im.py 8 --- a/wokkel/im.py Wed Oct 05 09:29:18 2011 +0200 9 +++ b/wokkel/im.py Wed Oct 05 09:32:22 2011 +0200 7 10 @@ -371,6 +371,12 @@ 8 11 @ivar groups: Set of groups this contact is categorized in. Groups are … … 46 49 if item.remove: 47 50 d = defer.maybeDeferred(self.onRosterRemove, item.entity) 48 diff -r 2741eaf2b765wokkel/test/test_im.py49 --- a/wokkel/test/test_im.py Wed May 25 20:26:472011 +020050 +++ b/wokkel/test/test_im.py Wed May 25 20:27:042011 +020051 diff -r a8623e33ce6e wokkel/test/test_im.py 52 --- a/wokkel/test/test_im.py Wed Oct 05 09:29:18 2011 +0200 53 +++ b/wokkel/test/test_im.py Wed Oct 05 09:32:22 2011 +0200 51 54 @@ -764,9 +764,9 @@ 52 55 return d -
roster_server.patch
r51 r54 1 1 Add server side support for the roster protocol. 2 2 3 diff -r 6604e0dc687c wokkel/im.py 4 --- a/wokkel/im.py Wed Jun 01 09:35:07 2011 +0200 5 +++ b/wokkel/im.py Wed Jun 01 21:13:19 2011 +0200 3 * Implements roster get by calling `getRoster` and using the returned `list` 4 of `RosterItem`s to send back the roster. 5 6 TODO: 7 * Add more docstrings. 8 * Use `dict` instead of `list` as return value of `getRoster`. 9 * Add support for roster sets? 10 11 diff -r e3c41b054210 wokkel/im.py 12 --- a/wokkel/im.py Wed Oct 05 09:32:22 2011 +0200 13 +++ b/wokkel/im.py Wed Oct 05 09:38:26 2011 +0200 6 14 @@ -23,6 +23,7 @@ 7 15 NS_ROSTER = 'jabber:iq:roster' … … 53 61 + def getRoster(self, entity): 54 62 + raise NotImplementedError() 55 diff -r 6604e0dc687cwokkel/test/test_im.py56 --- a/wokkel/test/test_im.py Wed Jun 01 09:35:072011 +020057 +++ b/wokkel/test/test_im.py Wed Jun 01 21:13:192011 +020063 diff -r e3c41b054210 wokkel/test/test_im.py 64 --- a/wokkel/test/test_im.py Wed Oct 05 09:32:22 2011 +0200 65 +++ b/wokkel/test/test_im.py Wed Oct 05 09:38:26 2011 +0200 58 66 @@ -844,3 +844,80 @@ 59 67 d.addCallback(cb) -
series
r51 r54 1 copy_xmppim.patch 2 jid_cleanup.patch 1 pubsub_request_options.patch 2 release-0.7.0.patch 3 4 copy_xmppim.patch #+c2s 5 jid_cleanup.patch #+c2s 3 6 roster_item.patch #+c2s 4 7 roster_item_more.patch #+c2s 5 8 roster_server.patch #+c2s 6 xmpp_client_service.patch #+c2s 7 8 request-tracking.patch #+request 9 request-xmpphandler.patch #+request 10 request-stanza.patch #+request 11 disco-addressing.patch #+request 9 router_unknown.patch #+c2s 10 client_listen_authenticator.patch #+c2s 11 c2s_server_factory.patch #+c2s 12 session_manager.patch #+c2s 13 c2s_stanza_handlers.patch #+c2s 12 14 13 15 pubsub_resource_example.patch
Note: See TracChangeset
for help on using the changeset viewer.