Changeset 63:b8139f79276f for wokkel/pubsub.py
- Timestamp:
- Jul 6, 2009, 9:26:47 AM (13 years ago)
- Branch:
- default
- Convert:
- svn:b33ecbfc-034c-dc11-8662-000475d9059e/trunk@175
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wokkel/pubsub.py
r59 r63 1 1 # -*- test-case-name: wokkel.test.test_pubsub -*- 2 2 # 3 # Copyright (c) 2003-200 8Ralph Meijer3 # Copyright (c) 2003-2009 Ralph Meijer 4 4 # See LICENSE for details. 5 5 … … 15 15 from twisted.internet import defer 16 16 from twisted.python import log 17 from twisted.words.protocols.jabber import jid, error , xmlstream17 from twisted.words.protocols.jabber import jid, error 18 18 from twisted.words.xish import domish 19 19 20 20 from wokkel import disco, data_form, generic, shim 21 from wokkel.compat import IQ 21 22 from wokkel.subprotocols import IQHandlerMixin, XMPPHandler 22 23 from wokkel.iwokkel import IPubSubClient, IPubSubService, IPubSubResource … … 476 477 477 478 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. 479 480 This returns a deferred that fires upon reception of a response. See 480 L{ xmlstream.IQ} for details.481 L{IQ} for details. 481 482 482 483 @param xs: The XML stream to send the request on. … … 492 493 raise NotImplementedError() 493 494 494 iq = xmlstream.IQ(xs, self.stanzaType)495 iq = IQ(xs, self.stanzaType) 495 496 iq.addElement((childURI, 'pubsub')) 496 497 verbElement = iq.pubsub.addElement(childName)
Note: See TracChangeset
for help on using the changeset viewer.