Update usage of app.get_email_handler()
to avoid warnings
This commit is contained in:
parent
9eeb921915
commit
765b7b4957
|
@ -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):
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in a new issue