Ignore:
Timestamp:
Sep 30, 2008, 7:08:45 PM (14 years ago)
Author:
Christopher Zorn <tofu@…>
Branch:
wokkel-muc-client-support-24
Convert:
svn:b33ecbfc-034c-dc11-8662-000475d9059e/branches/wokkel-muc-client-support-24@69
Message:

add basic errors and disco stuff, still need iq and message parts re #24

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wokkel/disco.py

    r31 r108  
    1212
    1313from twisted.internet import defer
    14 from twisted.words.protocols.jabber import error, jid
     14from twisted.words.protocols.jabber import error, jid, xmlstream
    1515from twisted.words.xish import domish
    1616
     
    6262        if name:
    6363            self['name'] = name
     64
     65
     66class DiscoRequest(xmlstream.IQ):
     67    """
     68    Disco request.
     69
     70    @ivar namespace: Request namespace.
     71    @type namespace: C{str}
     72    @ivar method: Type attribute of the IQ request. Either C{'set'} or C{'get'}
     73    @type method: C{str}
     74    """
     75
     76    def __init__(self, xs, namespace=NS, method='get'):
     77        xmlstream.IQ.__init__(self, xs, method)
     78        self.addElement((namespace, 'query'))
     79
    6480
    6581
Note: See TracChangeset for help on using the changeset viewer.