# HG changeset patch # User souliane # Date 1441890123 -7200 # Node ID 6ce33757d21e920b356251b264256f23d4703dd3 # Parent bed30cef11a8706be67fe2ce8419938104c7c88a backend: fixes RSM for "unrestricted" mode diff -r bed30cef11a8 -r 6ce33757d21e sat_pubsub/backend.py --- a/sat_pubsub/backend.py Thu Aug 20 14:06:49 2015 +0200 +++ b/sat_pubsub/backend.py Thu Sep 10 15:02:03 2015 +0200 @@ -671,7 +671,11 @@ def render(result): - items = [elt for elt in elts if elt.name == 'item'] + try: + items = [elt for elt in elts if elt.name == 'item'] + except AttributeError: + # XXX: see sat_pubsub.pgsql_storage.LeafNode.getItemsById return value + items = [elt[0] for elt in elts if elt[0].name == 'item'] if len(items) > 0: if response.index is None: if request.before == '': # last page