From 35319970804daf8ec5d9b946f868114757ae5c2b Mon Sep 17 00:00:00 2001 From: mpeltriaux Date: Wed, 12 Jan 2022 14:17:12 +0100 Subject: [PATCH] # 63 Mail shared access revoked * adds mail support for revoking shared access * adds/updates translations --- konova/sub_settings/django_settings.py | 10 ++- konova/utils/mailer.py | 6 +- locale/de/LC_MESSAGES/django.mo | Bin 29910 -> 30761 bytes locale/de/LC_MESSAGES/django.po | 83 +++++++++++++----- .../email/sharing/shared_access_removed.html | 27 ++++++ templates/email/signature.html | 10 +++ 6 files changed, 109 insertions(+), 27 deletions(-) create mode 100644 templates/email/signature.html diff --git a/konova/sub_settings/django_settings.py b/konova/sub_settings/django_settings.py index 199ab17a..bc1a7511 100644 --- a/konova/sub_settings/django_settings.py +++ b/konova/sub_settings/django_settings.py @@ -204,9 +204,15 @@ DEBUG_TOOLBAR_CONFIG = { } # EMAIL (see https://docs.djangoproject.com/en/dev/topics/email/) -DEFAULT_FROM_EMAIL = "bot@arneo.de" # The default email address for the 'from' element + +# CHANGE_ME !!! ONLY FOR DEVELOPMENT !!! +EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend' +EMAIL_FILE_PATH = '/tmp/app-messages' # change this to a proper location + +DEFAULT_FROM_EMAIL = "service@ksp.de" # The default email address for the 'from' element EMAIL_HOST = "localhost" -EMAIL_PORT = "1025" +EMAIL_REPLY_TO = "ksp-servicestelle@sgdnord.rlp.de" +EMAIL_PORT = "25" #EMAIL_HOST_USER = "" #EMAIL_HOST_PASSWORD = "" EMAIL_USE_TLS = False diff --git a/konova/utils/mailer.py b/konova/utils/mailer.py index cc25f660..ab2ddcaf 100644 --- a/konova/utils/mailer.py +++ b/konova/utils/mailer.py @@ -11,7 +11,7 @@ from django.core.mail import send_mail from django.template.loader import render_to_string from django.utils.translation import gettext_lazy as _ -from konova.sub_settings.django_settings import DEFAULT_FROM_EMAIL +from konova.sub_settings.django_settings import DEFAULT_FROM_EMAIL, EMAIL_REPLY_TO logger = logging.getLogger(__name__) @@ -40,7 +40,8 @@ class Mailer: """ return send_mail( subject=subject, - message=msg, + message=None, + html_message=msg, from_email=self.from_mail, recipient_list=recipient_list, fail_silently=self.fail_silently, @@ -60,6 +61,7 @@ class Mailer: context = { "user": user, "obj": obj, + "EMAIL_REPLY_TO": EMAIL_REPLY_TO, } msg = render_to_string("email/sharing/shared_access_removed.html", context) user_mail_address = [user.email] diff --git a/locale/de/LC_MESSAGES/django.mo b/locale/de/LC_MESSAGES/django.mo index 37299851a48bd993a37c2dea089bb4b52d56c980..3143958dea20cdf80285e35243f4906d9e3b0fd0 100644 GIT binary patch delta 10133 zcmZA733L=yzQ^$jSqKRU5O#>9kVO(g*pyWz5QHFG*bD*zvQ&~LNq6kd!XmZ;!|DPA z5J8ZL4x%7DA}A^|BBFx~ipwad$OtOppr}vu;WEDOuj}R==GB>hKKI_bb@!^qbLNAK zVLQJI3x1jqvEJg^8)jLF_-LGE4Q)WWy-F?1?rd32xYrSD$oKAISxfOKF2XTgE$a?^ z8@<@|2Fn_U>v0Kwj@O~5n`I^7GUFzUvaF!Bn?x)(p2NoY3Rd9>jK|^0u9Hyp@~{(n zP5D}ELB1B7;sI=iZvO6>c^+3-5`yTXhlIEY>T6?4d#a`Sk~RfRj3(k zLMChNHs$YQIQjF~6E7e$vs!m|JM4g(SRZ6@ts$uX#$qG-w+cvT#9q{c_o5zHW?Y9c zH~{_EHSPvG_VD{96aQZ1_?rXjmv^+Qc?CdT4i3~EW1kdPZO8h4={+>e^^ zA=Fl!#Kw3QwS<>Y&xO&u_P8agyf11(nb;Dip=Ml;akvcC{`wxQzZ%{`f%a|}s=-6p z4&T8fyoBnYahm&J3TmKzOnxxxxeQdt*{GHAnEU0Z6`YF^xEM9DRZ)$wnrj^cZ{?X^Wsq#J6+8K{AcHu;G`66#=@ zF(0*Lr5KNkPy<L>@)j z4_ezvWKi%t>cL+z665;16`P|TY=`)tiNS9g9&Nm7?kgusO~} zt?2#OSnvOaP{Ojdqn30pw#HXb4W2^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 z6-hiIf{5G1i-fLsiPgm8yj&T_5xQQZ-j*0dj3Gu5p+r09_W%D|o3_`e1-m!=J4)+_ zUbO0(P2^Kf*AU7*xOd*RMd1=+B+-ZV5ZnGF<-btQAhuI}mKbF3S&C0Z zd%Jp2Sk(Cm1nRmxaII4`(Ud)j@wWb7>u*?Y%S)|!xQ$4&^#a~2B9!S| zvb7oA zJ\n" "Language-Team: LANGUAGE \n" @@ -47,7 +47,7 @@ msgstr "Bis" #: analysis/forms.py:47 compensation/forms/forms.py:77 #: compensation/templates/compensation/detail/eco_account/view.html:58 #: compensation/templates/compensation/report/eco_account/report.html:16 -#: compensation/utils/quality.py:112 ema/templates/ema/detail/view.html:49 +#: compensation/utils/quality.py:100 ema/templates/ema/detail/view.html:49 #: ema/templates/ema/report/report.html:16 ema/utils/quality.py:26 #: intervention/forms/forms.py:100 #: intervention/templates/intervention/detail/view.html:56 @@ -140,7 +140,7 @@ msgstr "Zuständigkeitsbereich" #: compensation/templates/compensation/detail/compensation/view.html:63 #: intervention/tables.py:33 #: intervention/templates/intervention/detail/view.html:68 -#: user/models/user_action.py:19 +#: user/models/user_action.py:18 msgid "Checked" msgstr "Geprüft" @@ -159,7 +159,7 @@ msgstr "Geprüft" #: ema/tables.py:38 ema/templates/ema/detail/view.html:35 #: intervention/tables.py:39 #: intervention/templates/intervention/detail/view.html:82 -#: user/models/user_action.py:20 +#: user/models/user_action.py:19 msgid "Recorded" msgstr "Verzeichnet" @@ -374,7 +374,7 @@ msgstr "Zusätzlicher Kommentar" #: compensation/forms/forms.py:93 #: compensation/templates/compensation/detail/eco_account/view.html:62 #: compensation/templates/compensation/report/eco_account/report.html:20 -#: compensation/utils/quality.py:114 ema/templates/ema/detail/view.html:53 +#: compensation/utils/quality.py:102 ema/templates/ema/detail/view.html:53 #: ema/templates/ema/report/report.html:20 ema/utils/quality.py:28 #: intervention/forms/forms.py:128 #: intervention/templates/intervention/detail/view.html:60 @@ -434,7 +434,7 @@ msgstr "Neue Kompensation" msgid "Edit compensation" msgstr "Bearbeite Kompensation" -#: compensation/forms/forms.py:302 compensation/utils/quality.py:96 +#: compensation/forms/forms.py:302 compensation/utils/quality.py:84 msgid "Available Surface" msgstr "Verfügbare Fläche" @@ -444,7 +444,7 @@ msgstr "Die für Abbuchungen zur Verfügung stehende Menge" #: compensation/forms/forms.py:314 #: compensation/templates/compensation/detail/eco_account/view.html:66 -#: compensation/utils/quality.py:84 +#: compensation/utils/quality.py:72 msgid "Agreement date" msgstr "Vereinbarungsdatum" @@ -962,7 +962,7 @@ msgstr "Eingriffskennung" #: compensation/templates/compensation/detail/eco_account/includes/deductions.html:37 #: intervention/templates/intervention/detail/includes/deductions.html:34 -#: user/models/user_action.py:22 +#: user/models/user_action.py:21 msgid "Created" msgstr "Erstellt" @@ -1040,21 +1040,17 @@ msgstr "-" msgid "States unequal" msgstr "Ungleiche Zustandsflächenmengen" -#: compensation/utils/quality.py:72 -msgid "Not recorded" -msgstr "Noch nicht verzeichnet" - -#: compensation/utils/quality.py:86 intervention/utils/quality.py:84 +#: compensation/utils/quality.py:74 intervention/utils/quality.py:84 msgid "Legal data" msgstr "Rechtliche Daten" -#: compensation/utils/quality.py:100 +#: compensation/utils/quality.py:88 msgid "Deductable surface can not be larger than state surface" msgstr "" "Die abbuchbare Fläche darf die Gesamtfläche der Zielzustände nicht " "überschreiten" -#: compensation/utils/quality.py:116 ema/utils/quality.py:30 +#: compensation/utils/quality.py:104 ema/utils/quality.py:30 #: intervention/utils/quality.py:55 msgid "Responsible data" msgstr "Daten zu den verantwortlichen Stellen" @@ -1757,6 +1753,10 @@ msgstr "In Zwischenablage kopiert" msgid "Document '{}' deleted" msgstr "Dokument '{}' gelöscht" +#: konova/utils/mailer.py:70 +msgid "{} - Shared access removed" +msgstr "{} - Zugriff entzogen" + #: konova/utils/message_templates.py:11 msgid "There was an error on this form." msgstr "Es gab einen Fehler im Formular." @@ -1871,6 +1871,40 @@ msgstr "Alle" msgid "News" msgstr "Neuigkeiten" +#: templates/email/sharing/shared_access_removed.html:2 +msgid "Shared access removed" +msgstr "Freigegebener Zugriff entzogen" + +#: templates/email/sharing/shared_access_removed.html:6 +msgid "Hello " +msgstr "Hallo " + +#: templates/email/sharing/shared_access_removed.html:8 +msgid "" +"your shared access, including editing, has been revoked for the dataset " +msgstr "" +"Ihnen wurde soeben der bearbeitende Zugriff auf den folgenden Datensatz entzogen: " + +#: templates/email/sharing/shared_access_removed.html:13 +msgid "However, you are still able to view the dataset content." +msgstr "Sie können den Datensatz aber immer noch im KSP einsehen." + +#: templates/email/sharing/shared_access_removed.html:14 +msgid "Please use the provided search filter on the dataset`s overview pages to find them." +msgstr "Nutzen Sie hierzu einfach die entsprechenden Suchfilter auf den Übersichtsseiten" + +#: templates/email/sharing/shared_access_removed.html:18 +msgid "Best regards" +msgstr "Beste Grüße" + +#: templates/email/signature.html:6 +msgid "Please do not reply on this mail." +msgstr "Bitte antworten Sie nicht auf diese Mail." + +#: templates/email/signature.html:8 +msgid "If needed, please contact " +msgstr "Bei Rückfragen, wenden Sie sich bitte an " + #: templates/footer.html:6 msgid "Help" msgstr "Hilfe" @@ -2026,31 +2060,31 @@ msgstr "Wann wollen Sie per E-Mail benachrichtigt werden?" msgid "Edit notifications" msgstr "Benachrichtigungen bearbeiten" -#: user/forms.py:76 user/templates/user/index.html:9 +#: user/forms.py:72 user/templates/user/index.html:9 msgid "Username" msgstr "Nutzername" -#: user/forms.py:87 +#: user/forms.py:83 msgid "Person name" msgstr "Name" -#: user/forms.py:98 user/templates/user/index.html:17 +#: user/forms.py:94 user/templates/user/index.html:17 msgid "E-Mail" msgstr "" -#: user/forms.py:112 +#: user/forms.py:108 msgid "User contact data" msgstr "Kontaktdaten" -#: user/models/user_action.py:21 +#: user/models/user_action.py:20 msgid "Unrecorded" msgstr "Entzeichnet" -#: user/models/user_action.py:23 +#: user/models/user_action.py:22 msgid "Edited" msgstr "Bearbeitet" -#: user/models/user_action.py:24 +#: user/models/user_action.py:23 msgid "Deleted" msgstr "Gelöscht" @@ -2095,7 +2129,7 @@ msgstr "Benachrichtigungseinstellungen ändern" msgid "Notification settings" msgstr "Benachrichtigungen" -#: user/views.py:56 +#: user/views.py:52 msgid "Notifications edited" msgstr "Benachrichtigungen bearbeitet" @@ -3602,6 +3636,9 @@ msgstr "" msgid "Unable to connect to qpid with SASL mechanism %s" msgstr "" +#~ msgid "Not recorded" +#~ msgstr "Noch nicht verzeichnet" + #~ msgid "On new related data" #~ msgstr "Wenn neue Daten für mich angelegt werden" diff --git a/templates/email/sharing/shared_access_removed.html b/templates/email/sharing/shared_access_removed.html index e69de29b..529252c3 100644 --- a/templates/email/sharing/shared_access_removed.html +++ b/templates/email/sharing/shared_access_removed.html @@ -0,0 +1,27 @@ +{% load i18n %} + +
+

{% trans 'Shared access removed' %}

+

{{obj.identifier}}

+
+
+ {% trans 'Hello ' %} {{user.username}}, +
+ {% trans 'your shared access, including editing, has been revoked for the dataset ' %} +
+ '{{obj.identifier}}' +
+ {% trans 'However, you are still able to view the dataset content.' %} + {% trans 'Please use the provided search filter on the dataset`s overview pages to find them.' %} +
+
+ {% trans 'Best regards' %} +
+ KSP +
+
+
+ {% include 'email/signature.html' %} +
+
+ diff --git a/templates/email/signature.html b/templates/email/signature.html new file mode 100644 index 00000000..48f09095 --- /dev/null +++ b/templates/email/signature.html @@ -0,0 +1,10 @@ +{% load i18n %} + +
+
+ + {% trans 'Please do not reply on this mail.' %} +
+ {% trans 'If needed, please contact ' %} {{EMAIL_REPLY_TO}}. +
+
\ No newline at end of file