Ignore:
Timestamp:
Aug 4, 2008, 3:44:57 PM (13 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Convert:
svn:b33ecbfc-034c-dc11-8662-000475d9059e/trunk@60
Message:

Add support for pubsub collections.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wokkel/disco.py

    r6 r30  
    5454    """
    5555
    56     def __init__(self, jid, node = None, name = None):
     56    def __init__(self, jid, node='', name=None):
    5757        domish.Element.__init__(self, (NS_ITEMS, 'item'),
    5858                                attribs={'jid': jid.full()})
     
    8787        requestor = jid.internJID(iq["from"])
    8888        target = jid.internJID(iq["to"])
    89         nodeIdentifier = iq.query.getAttribute("node")
     89        nodeIdentifier = iq.query.getAttribute("node", '')
    9090
    9191        def toResponse(results):
     
    117117        requestor = jid.internJID(iq["from"])
    118118        target = jid.internJID(iq["to"])
    119         nodeIdentifier = iq.query.getAttribute("node")
     119        nodeIdentifier = iq.query.getAttribute("node", '')
    120120
    121121        def toResponse(results):
Note: See TracChangeset for help on using the changeset viewer.