Ignore:
Timestamp:
Oct 4, 2007, 9:47:22 AM (14 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Convert:
svn:b33ecbfc-034c-dc11-8662-000475d9059e/trunk@13
Message:

Support services on a JID.

Author: ralphm
Fixes #2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wokkel/disco.py

    r5 r6  
    8585
    8686    def _onDiscoInfo(self, iq):
     87        requestor = jid.internJID(iq["from"])
    8788        target = jid.internJID(iq["to"])
    88         requestor = jid.internJID(iq["from"])
    8989        nodeIdentifier = iq.query.getAttribute("node")
    9090
     
    107107        for handler in self.parent:
    108108            if IDisco.providedBy(handler):
    109                 dl.append(handler.getDiscoInfo(target, requestor,
     109                dl.append(handler.getDiscoInfo(requestor, target,
    110110                                               nodeIdentifier))
    111111
     
    115115
    116116    def _onDiscoItems(self, iq):
     117        requestor = jid.internJID(iq["from"])
    117118        target = jid.internJID(iq["to"])
    118         requestor = jid.internJID(iq["from"])
    119119        nodeIdentifier = iq.query.getAttribute("node")
    120120
     
    134134        for handler in self.parent:
    135135            if IDisco.providedBy(handler):
    136                 dl.append(handler.getDiscoItems(target, requestor,
     136                dl.append(handler.getDiscoItems(requestor, target,
    137137                                                nodeIdentifier))
    138138
Note: See TracChangeset for help on using the changeset viewer.