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): """