Ignore:
Timestamp:
Jul 6, 2009, 9:26:47 AM (12 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Convert:
svn:b33ecbfc-034c-dc11-8662-000475d9059e/trunk@175
Message:

Make IQ timeouts work for InternalComponents?.

This introduces wokkel.compat.IQ to work with older Twisted versions, too.

Author: ralphm.
Fixes #53.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wokkel/disco.py

    r62 r63  
    1212
    1313from twisted.internet import defer
    14 from twisted.words.protocols.jabber import error, jid, xmlstream
     14from twisted.words.protocols.jabber import error, jid
    1515from twisted.words.xish import domish
    1616
    1717from wokkel import data_form
     18from wokkel.compat import IQ
    1819from wokkel.iwokkel import IDisco
    1920from wokkel.subprotocols import IQHandlerMixin, XMPPHandler
     
    346347
    347348
    348 class _DiscoRequest(xmlstream.IQ):
     349class _DiscoRequest(IQ):
    349350    """
    350351    Element representing an XMPP service discovery request.
     
    362363        @type nodeIdentifier: C{unicode}
    363364        """
    364         xmlstream.IQ.__init__(self, xs, "get")
     365        IQ.__init__(self, xs, "get")
    365366        query = self.addElement((namespace, 'query'))
    366367        if nodeIdentifier:
Note: See TracChangeset for help on using the changeset viewer.