From 1fb3ee10d05410c98e5778e00ff836c3b2b2a38a Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 9 Jul 2024 10:16:31 -0500 Subject: [PATCH] fix: update config for custom emails per upstream changes --- pyproject.toml | 4 ++++ rattail_tutorial/config.py | 1 - rattail_tutorial/emails.py | 5 +---- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 9a33e70..1beb55c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,6 +46,10 @@ main = "rattail_tutorial.web.app:main" rattail_tutorial = "rattail_tutorial.config:RattailTutorialConfig" +[project.entry-points."rattail.emails"] +rattail_tutorial = "rattail_tutorial.emails" + + [project.urls] Homepage = "https://rattailproject.org" repository = "https://kallithea.rattailproject.org/rattail-project/rattail-tutorial" diff --git a/rattail_tutorial/config.py b/rattail_tutorial/config.py index eeb6944..12798ec 100644 --- a/rattail_tutorial/config.py +++ b/rattail_tutorial/config.py @@ -36,5 +36,4 @@ class RattailTutorialConfig(ConfigExtension): def configure(self, config): # set some default config values - config.setdefault('rattail.mail.emails', 'rattail_tutorial.emails') config.setdefault('tailbone.menus.handler', 'rattail_tutorial.web.menus:TutorialMenuHandler') diff --git a/rattail_tutorial/emails.py b/rattail_tutorial/emails.py index 1e82c6a..4359049 100644 --- a/rattail_tutorial/emails.py +++ b/rattail_tutorial/emails.py @@ -2,7 +2,7 @@ ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2019 Lance Edgar +# Copyright © 2010-2024 Lance Edgar # # This file is part of Rattail. # @@ -26,9 +26,6 @@ Custom email profiles from rattail.mail import Email -# bring in some common ones from rattail -from rattail.emails import datasync_error_watcher_get_changes, filemon_action_error - class rattail_import_sample_updates(Email): """