diff 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
line wrap: on
line diff
--- a/src/tmp/wokkel/pubsub.py	Wed Sep 02 14:59:28 2015 +0200
+++ b/src/tmp/wokkel/pubsub.py	Thu Sep 10 07:33:13 2015 +0200
@@ -1408,6 +1408,9 @@
         items["node"] = request.nodeIdentifier
 
         for item in result:
+            if isinstance(item, tuple):
+                # XXX: see sat_pubsub.pgsql_storage.LeafNode.getItemsById return value
+                item = item[0]
             if item.name == 'item':
                 item.uri = NS_PUBSUB
                 items.addChild(item)