From f0b93af53dab6091fc8768f36d7a94d07ceaaa32 Mon Sep 17 00:00:00 2001 From: Johannes Raggam Date: Fri, 3 Nov 2023 12:19:18 +0100 Subject: [PATCH] Fix BaseEmailNotification and add get_user_email and get_user_fullname methods. These are customized in other projects, where different fullname/email requirements are in place. (#664) --- src/euphorie/client/browser/webhelpers.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/euphorie/client/browser/webhelpers.py b/src/euphorie/client/browser/webhelpers.py index f7727f91d..10e520221 100644 --- a/src/euphorie/client/browser/webhelpers.py +++ b/src/euphorie/client/browser/webhelpers.py @@ -1426,5 +1426,11 @@ def survey_tree_data(self): return data + def get_user_email(self, account=None): + return account.email + + def get_user_fullname(self, account=None): + return account.title + def __call__(self): return self