From 765b7b49577a2bccb58448ccd338717e4926946d Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 12 Jan 2022 18:20:25 -0600 Subject: [PATCH] Update usage of `app.get_email_handler()` to avoid warnings --- tailbone/views/email.py | 6 +++--- tailbone/views/reports.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tailbone/views/email.py b/tailbone/views/email.py index 7b46f490..42f05c90 100644 --- a/tailbone/views/email.py +++ b/tailbone/views/email.py @@ -2,7 +2,7 @@ ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2021 Lance Edgar +# Copyright © 2010-2022 Lance Edgar # # This file is part of Rattail. # @@ -85,7 +85,7 @@ class EmailSettingView(MasterView): def get_handler(self): app = self.get_rattail_app() - return app.get_mail_handler() + return app.get_email_handler() def get_data(self, session=None): data = [] @@ -292,7 +292,7 @@ class EmailPreview(View): def get_handler(self): app = self.get_rattail_app() - return app.get_mail_handler() + return app.get_email_handler() def __call__(self): diff --git a/tailbone/views/reports.py b/tailbone/views/reports.py index e2aa3db6..2839c5b5 100644 --- a/tailbone/views/reports.py +++ b/tailbone/views/reports.py @@ -2,7 +2,7 @@ ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2021 Lance Edgar +# Copyright © 2010-2022 Lance Edgar # # This file is part of Rattail. # @@ -585,7 +585,7 @@ class ProblemReportView(MasterView): } app = self.get_rattail_app() - handler = app.get_mail_handler() + handler = app.get_email_handler() email = handler.get_email(data['email_key']) data['email_recipients'] = email.get_recips('all')