Mercurial > libervia-backend
comparison libervia/backend/tools/xml_tools.py @ 4110:b274f0d5c138
tools (common/data_objects): handle messages without body
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 08 Aug 2023 23:49:36 +0200 |
parents | 4b842c1fb686 |
children | 0d7bb4df2343 |
comparison
equal
deleted
inserted
replaced
4109:7067b0d73183 | 4110:b274f0d5c138 |
---|---|
1707 note_ui = note(message, title, level) | 1707 note_ui = note(message, title, level) |
1708 host.action_new({"xmlui": note_ui.toXml()}, profile=client.profile) | 1708 host.action_new({"xmlui": note_ui.toXml()}, profile=client.profile) |
1709 | 1709 |
1710 | 1710 |
1711 def deferred_ui(host, xmlui, chained=False): | 1711 def deferred_ui(host, xmlui, chained=False): |
1712 """create a deferred linked to XMLUI | 1712 """Create a deferred linked to XMLUI |
1713 | 1713 |
1714 @param xmlui(XMLUI): instance of the XMLUI | 1714 @param xmlui(XMLUI): instance of the XMLUI |
1715 Must be an XMLUI that you can submit, with submit_id set to '' | 1715 Must be an XMLUI that you can submit, with submit_id set to '' |
1716 @param chained(bool): True if the Deferred result must be returned to the frontend | 1716 @param chained(bool): True if the Deferred result must be returned to the frontend |
1717 useful when backend is in a series of dialogs with an ui | 1717 useful when backend is in a series of dialogs with an ui |