Mercurial > libervia-web
diff libervia/pages/tickets/edit/page_meta.py @ 1302:04e7dd6b6f4d
pages (blog, tickets, merge-requests): updated code to handle new serialisation, following backend changes
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 16 Jul 2020 09:08:47 +0200 |
parents | f511f8fbbf8a |
children |
line wrap: on
line diff
--- a/libervia/pages/tickets/edit/page_meta.py Fri Jun 19 16:47:51 2020 +0200 +++ b/libervia/pages/tickets/edit/page_meta.py Thu Jul 16 09:08:47 2020 +0200 @@ -49,7 +49,7 @@ "updated", "comments_uri", ) - tickets = yield self.host.bridgeCall( + tickets_raw = yield self.host.bridgeCall( "ticketsGet", service.full() if service else "", node, @@ -59,7 +59,8 @@ {}, profile, ) - ticket = [template_xmlui.create(self.host, x, ignore=ignore) for x in tickets[0]][0] + tickets, metadata = data_format.deserialise(tickets_raw, type_check=list) + ticket = [template_xmlui.create(self.host, x, ignore=ignore) for x in tickets][0] try: # small trick to get a one line text input instead of the big textarea