Update usage of app.get_email_handler() to avoid warnings

This commit is contained in:
Lance Edgar 2022-01-12 18:20:25 -06:00
parent 9eeb921915
commit 765b7b4957
2 changed files with 5 additions and 5 deletions

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2021 Lance Edgar # Copyright © 2010-2022 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -85,7 +85,7 @@ class EmailSettingView(MasterView):
def get_handler(self): def get_handler(self):
app = self.get_rattail_app() app = self.get_rattail_app()
return app.get_mail_handler() return app.get_email_handler()
def get_data(self, session=None): def get_data(self, session=None):
data = [] data = []
@ -292,7 +292,7 @@ class EmailPreview(View):
def get_handler(self): def get_handler(self):
app = self.get_rattail_app() app = self.get_rattail_app()
return app.get_mail_handler() return app.get_email_handler()
def __call__(self): def __call__(self):

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2021 Lance Edgar # Copyright © 2010-2022 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -585,7 +585,7 @@ class ProblemReportView(MasterView):
} }
app = self.get_rattail_app() app = self.get_rattail_app()
handler = app.get_mail_handler() handler = app.get_email_handler()
email = handler.get_email(data['email_key']) email = handler.get_email(data['email_key'])
data['email_recipients'] = email.get_recips('all') data['email_recipients'] = email.get_recips('all')