Mercurial > libervia-web
comparison libervia/server/blog.py @ 1160:1276452c0d32
server (legacy blog): fixed items deserialisation
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 26 Feb 2019 20:24:20 +0100 |
parents | 3048bd137aaf |
children | b2d067339de3 |
comparison
equal
deleted
inserted
replaced
1159:4e716967893a | 1160:1276452c0d32 |
---|---|
443 remaining, results = data | 443 remaining, results = data |
444 # we have requested one node only | 444 # we have requested one node only |
445 assert remaining == 0 | 445 assert remaining == 0 |
446 assert len(results) == 1 | 446 assert len(results) == 1 |
447 service, node, failure, items, metadata = results[0] | 447 service, node, failure, items, metadata = results[0] |
448 items = [(data_format.deserialise(i), m) for i,m in items] | |
448 if failure: | 449 if failure: |
449 self.renderError(failure, request, pub_jid) | 450 self.renderError(failure, request, pub_jid) |
450 else: | 451 else: |
451 self.renderHTML(items, metadata, request, pub_jid, profile) | 452 self.renderHTML(items, metadata, request, pub_jid, profile) |
452 | 453 |