comparison src/tmp/wokkel/pubsub.py @ 1510:91631837ce5c

tmp (wokkel): fixes RSM implementation to fit sat_pubsub answer when in "unrestricted" mode
author souliane <souliane@mailoo.org>
date Thu, 10 Sep 2015 07:33:13 +0200
parents 2e43eb9d8167
children a125b11af711
comparison
equal deleted inserted replaced
1509:72e6ee3fdf53 1510:91631837ce5c
1406 response = domish.Element((NS_PUBSUB, 'pubsub')) 1406 response = domish.Element((NS_PUBSUB, 'pubsub'))
1407 items = response.addElement('items') 1407 items = response.addElement('items')
1408 items["node"] = request.nodeIdentifier 1408 items["node"] = request.nodeIdentifier
1409 1409
1410 for item in result: 1410 for item in result:
1411 if isinstance(item, tuple):
1412 # XXX: see sat_pubsub.pgsql_storage.LeafNode.getItemsById return value
1413 item = item[0]
1411 if item.name == 'item': 1414 if item.name == 'item':
1412 item.uri = NS_PUBSUB 1415 item.uri = NS_PUBSUB
1413 items.addChild(item) 1416 items.addChild(item)
1414 1417
1415 return response 1418 return response