Changeset 73:f574beee3bca in ralphm-patches for c2s_stanza_handlers.patch


Ignore:
Timestamp:
May 6, 2013, 10:01:18 PM (7 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Children:
74:355afce3af27, 75:9b7b8b99da61
Message:

Minor cleanups, improved error message handling, and upstreamed patch.

  • Upstreamed deprecation of prepareIDNName.
  • MessageProtocol? now properly handles error message stanzas.
  • Renamed methods for RosterServerProtocol?.
  • Prefer connectionInitialized for setting up stanza observers.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c2s_stanza_handlers.patch

    r72 r73  
    11# HG changeset patch
    2 # Parent c104dd0a9d3fb840b53661822cf06728a5b23d8f
     2# Parent 70ce9e97aa58780ac7f75a177fe8c0d2aaf1bfc6
    33Add c2s protocol handlers for iq, message and presence stanzas.
    44
     
    4848 from wokkel.subprotocols import IQHandlerMixin
    4949 
    50 @@ -2004,3 +2004,419 @@
     50@@ -2031,3 +2031,418 @@
    5151         d = self.sessionManager.probePresence(user)
    5252         d.addCallback(cb)
     
    197197+        stanza = received[-1]
    198198+        self.assertEqual(u'Hello', stanza.body)
    199 +
    200199+
    201200+
     
    522521 
    523522+    observerPriority = 0
    524      stanzaFactory = Message
     523     messageFactory = Message
    525524 
    526525     def connectionInitialized(self):
     
    531530 
    532531     @asyncObserver
    533 @@ -1673,3 +1681,246 @@
     532@@ -1689,3 +1697,246 @@
    534533             presence = ProbePresence(recipient=entity,
    535534                                      sender=user.entity)
Note: See TracChangeset for help on using the changeset viewer.