source: ralphm-patches/pubsub_connectionInitialized.patch @ 73:f574beee3bca

Last change on this file since 73:f574beee3bca was 73:f574beee3bca, checked in by Ralph Meijer <ralphm@…>, 7 years ago

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 size: 1.2 KB
  • wokkel/pubsub.py

    # HG changeset patch
    # Parent 8225db068494be9796ab059e00bdb510ffe05bab
    diff --git a/wokkel/pubsub.py b/wokkel/pubsub.py
    a b  
    10941094        self.pubSubFeatures = []
    10951095
    10961096
    1097     def connectionMade(self):
     1097    def connectionInitialized(self):
    10981098        self.xmlstream.addObserver(PUBSUB_REQUEST, self.handleRequest)
    10991099
    11001100
  • wokkel/test/test_pubsub.py

    diff --git a/wokkel/test/test_pubsub.py b/wokkel/test/test_pubsub.py
    a b  
    19631963        verify.verifyObject(iwokkel.IDisco, self.service)
    19641964
    19651965
    1966     def test_connectionMade(self):
    1967         """
    1968         Verify setup of observers in L{pubsub.connectionMade}.
     1966    def test_connectionInitialized(self):
     1967        """
     1968        Verify setup of observers in L{pubsub.connectionInitialized}.
    19691969        """
    19701970        requests = []
    19711971
     
    19751975        self.service.xmlstream = self.stub.xmlstream
    19761976        self.service.handleRequest = handleRequest
    19771977        self.service.connectionMade()
     1978        self.service.connectionInitialized()
    19781979
    19791980        for namespace in (NS_PUBSUB, NS_PUBSUB_OWNER):
    19801981            for stanzaType in ('get', 'set'):
Note: See TracBrowser for help on using the repository browser.