Mercurial > libervia-backend
changeset 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 | 7067b0d73183 |
children | a8ac5e1e5848 |
files | libervia/backend/tools/common/data_objects.py libervia/backend/tools/xml_tools.py |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libervia/backend/tools/common/data_objects.py Thu Jul 06 11:34:52 2023 +0200 +++ b/libervia/backend/tools/common/data_objects.py Tue Aug 08 23:49:36 2023 +0200 @@ -62,7 +62,7 @@ try: return self._message_data[""] except KeyError: - return next(iter(self._message_data.values())) + return next(iter(self._message_data.values()), "") @property def subject(self):
--- a/libervia/backend/tools/xml_tools.py Thu Jul 06 11:34:52 2023 +0200 +++ b/libervia/backend/tools/xml_tools.py Tue Aug 08 23:49:36 2023 +0200 @@ -1709,7 +1709,7 @@ def deferred_ui(host, xmlui, chained=False): - """create a deferred linked to XMLUI + """Create a deferred linked to XMLUI @param xmlui(XMLUI): instance of the XMLUI Must be an XMLUI that you can submit, with submit_id set to ''