Ignore:
Timestamp:
Sep 29, 2008, 9:43:56 PM (13 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Convert:
svn:b33ecbfc-034c-dc11-8662-000475d9059e/trunk@67
Message:

Make requests for subscriptions work again.

Author: mmalone (ralphm).
Reviewer: ralphm.
Fixes #22.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wokkel/pubsub.py

    r30 r32  
    703703            response = domish.Element((NS_PUBSUB, 'pubsub'))
    704704            subscriptions = response.addElement('subscriptions')
    705             for node, subscriber, state in result:
     705            for subscription in result:
    706706                item = subscriptions.addElement('subscription')
    707                 item['node'] = node
    708                 item['jid'] = subscriber.full()
    709                 item['subscription'] = state
     707                item['node'] = subscription.nodeIdentifier
     708                item['jid'] = subscription.subscriber.full()
     709                item['subscription'] = subscription.state
    710710            return response
    711711
Note: See TracChangeset for help on using the changeset viewer.