From c79e8d3852aac0c57f88bb2a930ffe68e761403e Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Mon, 21 Nov 2022 10:37:36 +0100 Subject: [PATCH 1/3] Fix display bug --- core/admin/mailu/ui/templates/fetch/list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/admin/mailu/ui/templates/fetch/list.html b/core/admin/mailu/ui/templates/fetch/list.html index e502d96a..74d3a02f 100644 --- a/core/admin/mailu/ui/templates/fetch/list.html +++ b/core/admin/mailu/ui/templates/fetch/list.html @@ -39,7 +39,7 @@ {{ fetch.username }} {% if fetch.keep %}{% trans %}yes{% endtrans %}{% else %}{% trans %}no{% endtrans %}{% endif %} {% if fetch.scan %}{% trans %}yes{% endtrans %}{% else %}{% trans %}no{% endtrans %}{% endif %} - {{ fetch.folders.data | join(',') }} + {{ fetch.folders | join(',') }} {{ fetch.last_check | format_datetime or '-' }} {{ fetch.error or '-' }} {{ fetch.created_at | format_date }} From 4da2db1b0bd2052445c09353485b6cbf9c3e360b Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Mon, 21 Nov 2022 10:38:44 +0100 Subject: [PATCH 2/3] add comment as requested --- core/admin/mailu/ui/forms.py | 1 + 1 file changed, 1 insertion(+) diff --git a/core/admin/mailu/ui/forms.py b/core/admin/mailu/ui/forms.py index fa81adc3..ec19bb0b 100644 --- a/core/admin/mailu/ui/forms.py +++ b/core/admin/mailu/ui/forms.py @@ -42,6 +42,7 @@ class MultipleEmailAddressesVerify(object): raise validators.ValidationError(self.message) class MultipleFoldersVerify(object): + """ Ensure that we have CSV formated data """ def __init__(self,message=_('Invalid list of folders.')): self.message = message From 45b01db9de9f7866bb2ca1a51ccf788117916628 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Mon, 21 Nov 2022 11:01:01 +0100 Subject: [PATCH 3/3] Fix the language switcher --- core/admin/mailu/sso/views/languages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/admin/mailu/sso/views/languages.py b/core/admin/mailu/sso/views/languages.py index ff65af45..19764519 100644 --- a/core/admin/mailu/sso/views/languages.py +++ b/core/admin/mailu/sso/views/languages.py @@ -1,7 +1,7 @@ from mailu.sso import sso import flask -@sso.route('/language/', methods=['POST']) +@sso.route('/language/', methods=['GET','POST']) def set_language(language=None): if language: flask.session['language'] = language