Ignore:
Timestamp:
Jan 2, 2008, 1:01:10 PM (15 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.