Changeset 53:fd2b3f70b221 in ralphm-patches for request-xmpphandler.patch


Ignore:
Timestamp:
Aug 3, 2011, 9:48:58 AM (11 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Message:

Small cleanups for request handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • request-xmpphandler.patch

    r47 r53  
    11# HG changeset patch
    2 # Parent b05489ad4987a5e6263513c26048be801f7ce42b
     2# Parent 4d60ea3a5ab59d48e5080c913f6aeea9af55fccb
    33Add request method to XMPPHandler, passing up to its StreamManager.
    44
    5 diff -r b05489ad4987 wokkel/subprotocols.py
    6 --- a/wokkel/subprotocols.py    Fri Mar 04 09:45:25 2011 +0100
    7 +++ b/wokkel/subprotocols.py    Fri Mar 04 09:48:19 2011 +0100
     5diff -r 4d60ea3a5ab5 wokkel/subprotocols.py
     6--- a/wokkel/subprotocols.py    Wed Aug 03 09:45:01 2011 +0200
     7+++ b/wokkel/subprotocols.py    Wed Aug 03 09:46:32 2011 +0200
    88@@ -94,6 +94,18 @@
    99         self.parent.send(obj)
     
    2525 class XMPPHandlerCollection(object):
    2626     """
    27 diff -r b05489ad4987 wokkel/test/test_subprotocols.py
    28 --- a/wokkel/test/test_subprotocols.py  Fri Mar 04 09:45:25 2011 +0100
    29 +++ b/wokkel/test/test_subprotocols.py  Fri Mar 04 09:48:19 2011 +0100
     27diff -r 4d60ea3a5ab5 wokkel/test/test_subprotocols.py
     28--- a/wokkel/test/test_subprotocols.py  Wed Aug 03 09:45:01 2011 +0200
     29+++ b/wokkel/test/test_subprotocols.py  Wed Aug 03 09:46:32 2011 +0200
    3030@@ -71,6 +71,15 @@
    3131 
     
    5858+            def request(self, request):
    5959+                self.requests.append(request)
    60 +                d = defer.succeed(None)
     60+                return defer.succeed(None)
    6161+
    6262+        handler = subprotocols.XMPPHandler()
     
    7272 class XMPPHandlerCollectionTest(unittest.TestCase):
    7373     """
    74 @@ -165,15 +195,6 @@
     74@@ -165,13 +195,6 @@
    7575 
    7676 
    7777 
    7878-class IQGetStanza(generic.Stanza):
    79 -    timeout = None
    80 -
    8179-    stanzaKind = 'iq'
    8280-    stanzaType = 'get'
Note: See TracChangeset for help on using the changeset viewer.