Ignore:
Timestamp:
Jan 27, 2013, 10:40:32 PM (10 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Message:

Major reworking of avatars, session manager and stanza handlers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • listening-authenticator-stream-features.patch

    r66 r72  
    11# HG changeset patch
    2 # Parent 9393ad83138bbe6ab1c5249a6a115b8e56144622
     2# Parent 840b96390047670c5209195300f902689c18b12f
    33Add FeatureListeningAuthenticator.
    44
     
    99--- a/wokkel/generic.py
    1010+++ b/wokkel/generic.py
    11 @@ -10,13 +10,13 @@
     11@@ -10,7 +10,7 @@
    1212 from zope.interface import implements
    1313 
     
    1515-from twisted.python import reflect
    1616+from twisted.python import log, reflect
     17 from twisted.python.deprecate import deprecated
     18 from twisted.python.versions import Version
    1719 from twisted.words.protocols.jabber import error, jid, xmlstream
    18  from twisted.words.protocols.jabber.xmlstream import toResponse
     20@@ -18,7 +18,7 @@
    1921 from twisted.words.xish import domish, utility
    2022 from twisted.words.xish.xmlstream import BootstrapMixin
     
    2527 
    2628 IQ_GET = '/iq[@type="get"]'
    27 @@ -25,6 +25,8 @@
     29@@ -27,6 +27,8 @@
    2830 NS_VERSION = 'jabber:iq:version'
    2931 VERSION = IQ_GET + '/query[@xmlns="' + NS_VERSION + '"]'
     
    3436     """
    3537     Parse serialized XML into a DOM structure.
    36 @@ -327,3 +329,287 @@
    37  
    38      def clientConnectionFailed(self, connector, reason):
    39          self.deferred.errback(reason)
    40 +
    41 +
    42 +
     38@@ -332,6 +334,290 @@
     39 
     40 
     41 
    4342+class TestableXmlStream(xmlstream.XmlStream):
    4443+    """
     
    322321+        self._initializers = self.getInitializers()
    323322+        self._initializeStream()
     323+
     324+
     325+
     326 @deprecated(Version("Wokkel", 0, 8, 0), "unicode.encode('idna')")
     327 def prepareIDNName(name):
     328     """
    324329diff --git a/wokkel/iwokkel.py b/wokkel/iwokkel.py
    325330--- a/wokkel/iwokkel.py
     
    388393--- a/wokkel/test/test_generic.py
    389394+++ b/wokkel/test/test_generic.py
    390 @@ -5,11 +5,16 @@
    391  Tests for L{wokkel.generic}.
    392  """
     395@@ -7,14 +7,19 @@
     396 
     397 import re
    393398 
    394399+from zope.interface import verify
    395400+
    396401+from twisted.internet import defer
     402 from twisted.python import deprecate
     403 from twisted.python.versions import Version
    397404+from twisted.test import proto_helpers
    398405 from twisted.trial import unittest
     406 from twisted.trial.util import suppress as SUPPRESS
    399407 from twisted.words.xish import domish
    400408 from twisted.words.protocols.jabber.jid import JID
     
    406414 
    407415 NS_VERSION = 'jabber:iq:version'
    408 @@ -268,3 +273,331 @@
    409          The default is no timeout.
    410          """
    411          self.assertIdentical(None, self.request.timeout)
    412 +
    413 +
    414 +
     416@@ -276,6 +281,334 @@
     417 
     418 
     419 
    415420+class BaseReceivingInitializerTest(unittest.TestCase):
    416421+    """
     
    738743+
    739744+        self.xmlstream.assertStreamError(self, condition='invalid-namespace')
     745+
     746+
     747+
     748 class PrepareIDNNameTests(unittest.TestCase):
     749     """
     750     Tests for L{wokkel.generic.prepareIDNName}.
Note: See TracChangeset for help on using the changeset viewer.