Mercurial > libervia-web
comparison 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 |
comparison
equal
deleted
inserted
replaced
1301:ff44f822bfdd | 1302:04e7dd6b6f4d |
---|---|
47 "author_email", | 47 "author_email", |
48 "created", | 48 "created", |
49 "updated", | 49 "updated", |
50 "comments_uri", | 50 "comments_uri", |
51 ) | 51 ) |
52 tickets = yield self.host.bridgeCall( | 52 tickets_raw = yield self.host.bridgeCall( |
53 "ticketsGet", | 53 "ticketsGet", |
54 service.full() if service else "", | 54 service.full() if service else "", |
55 node, | 55 node, |
56 C.NO_LIMIT, | 56 C.NO_LIMIT, |
57 [ticket_id], | 57 [ticket_id], |
58 "", | 58 "", |
59 {}, | 59 {}, |
60 profile, | 60 profile, |
61 ) | 61 ) |
62 ticket = [template_xmlui.create(self.host, x, ignore=ignore) for x in tickets[0]][0] | 62 tickets, metadata = data_format.deserialise(tickets_raw, type_check=list) |
63 ticket = [template_xmlui.create(self.host, x, ignore=ignore) for x in tickets][0] | |
63 | 64 |
64 try: | 65 try: |
65 # small trick to get a one line text input instead of the big textarea | 66 # small trick to get a one line text input instead of the big textarea |
66 ticket.widgets["labels"].type = "string" | 67 ticket.widgets["labels"].type = "string" |
67 ticket.widgets["labels"].value = ticket.widgets["labels"].value.replace( | 68 ticket.widgets["labels"].value = ticket.widgets["labels"].value.replace( |