Changeset 8:af29fb9001cb


Ignore:
Timestamp:
Jan 2, 2008, 1:01:10 PM (14 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Convert:
svn:b33ecbfc-034c-dc11-8662-000475d9059e/trunk@25
Message:

Add compatiblity module to have wokkel work with Twisted Words 0.5.

Author: ralphm
Fixes #5.

Location:
wokkel
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • wokkel/client.py

    r2 r8  
     1# -*- test-case-name: wokkel.test.test_client -*-
     2#
    13# Copyright (c) 2003-2007 Ralph Meijer
    24# See LICENSE for details.
     
    1315from twisted.names.srvconnect import SRVConnector
    1416from twisted.words.protocols.jabber import client, sasl, xmlstream
    15 from twisted.words.xish.xmlstream import XmlStreamFactoryMixin
     17
     18try:
     19    from twisted.words.xish.xmlstream import XmlStreamFactoryMixin
     20except ImportError:
     21    from wokkel.compat import XmlStreamFactoryMixin
     22
    1623
    1724from wokkel.subprotocols import StreamManager
  • wokkel/subprotocols.py

    r4 r8  
    1515from twisted.words.xish import xpath
    1616from twisted.words.xish.domish import IElement
     17
     18try:
     19    from twisted.words.protocols.jabber.xmlstream import toResponse
     20except ImportError:
     21    from wokkel.compat import toResponse
    1722
    1823from wokkel.iwokkel import IXMPPHandler, IXMPPHandlerCollection
     
    242247        """
    243248        def toResult(result, iq):
    244             response = xmlstream.toResponse(iq, 'result')
     249            response = toResponse(iq, 'result')
    245250
    246251            if result:
Note: See TracChangeset for help on using the changeset viewer.