Mercurial > sat_tmp
comparison wokkel/pubsub.py @ 14:1de25b1f609f
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 | 22f0cb2fa793 |
children | fd6957dfa8c6 |
comparison
equal
deleted
inserted
replaced
13:22f0cb2fa793 | 14:1de25b1f609f |
---|---|
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 |