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/pubsub.py

    r59 r63  
    11# -*- test-case-name: wokkel.test.test_pubsub -*-
    22#
    3 # Copyright (c) 2003-2008 Ralph Meijer
     3# Copyright (c) 2003-2009 Ralph Meijer
    44# See LICENSE for details.
    55
     
    1515from twisted.internet import defer
    1616from twisted.python import log
    17 from twisted.words.protocols.jabber import jid, error, xmlstream
     17from twisted.words.protocols.jabber import jid, error
    1818from twisted.words.xish import domish
    1919
    2020from wokkel import disco, data_form, generic, shim
     21from wokkel.compat import IQ
    2122from wokkel.subprotocols import IQHandlerMixin, XMPPHandler
    2223from wokkel.iwokkel import IPubSubClient, IPubSubService, IPubSubResource
     
    476477
    477478        This renders all of the relevant parameters for this specific
    478         requests into an L{xmlstream.IQ}, and invoke its C{send} method.
     479        requests into an L{IQ}, and invoke its C{send} method.
    479480        This returns a deferred that fires upon reception of a response. See
    480         L{xmlstream.IQ} for details.
     481        L{IQ} for details.
    481482
    482483        @param xs: The XML stream to send the request on.
     
    492493            raise NotImplementedError()
    493494
    494         iq = xmlstream.IQ(xs, self.stanzaType)
     495        iq = IQ(xs, self.stanzaType)
    495496        iq.addElement((childURI, 'pubsub'))
    496497        verbElement = iq.pubsub.addElement(childName)
Note: See TracChangeset for help on using the changeset viewer.