Register entry points for emails

and stop declaring via old way in config
This commit is contained in:
Lance Edgar 2022-08-07 19:10:03 -05:00
parent e73a413e00
commit e29e8e0761
2 changed files with 8 additions and 5 deletions

View file

@ -18,7 +18,6 @@ class CorporalConfig(ConfigExtension):
# set some default config values # set some default config values
config.setdefault('rattail', 'model', 'corporal.db.model') config.setdefault('rattail', 'model', 'corporal.db.model')
config.setdefault('rattail.mail', 'emails', 'corporal.emails')
config.setdefault('rattail', 'settings', 'corporal.settings') config.setdefault('rattail', 'settings', 'corporal.settings')
config.setdefault('tailbone', 'menus', 'corporal.web.menus') config.setdefault('tailbone', 'menus', 'corporal.web.menus')
config.setdefault('rattail.config', 'templates', 'corporal:data/config rattail:data/config') config.setdefault('rattail.config', 'templates', 'corporal:data/config rattail:data/config')

View file

@ -94,10 +94,6 @@ setup(
entry_points = { entry_points = {
'rattail.config.extensions': [
'corporal = corporal.config:CorporalConfig',
],
'console_scripts': [ 'console_scripts': [
'corporal = corporal.commands:main', 'corporal = corporal.commands:main',
], ],
@ -109,5 +105,13 @@ setup(
'paste.app_factory': [ 'paste.app_factory': [
'main = corporal.web.app:main', 'main = corporal.web.app:main',
], ],
'rattail.config.extensions': [
'corporal = corporal.config:CorporalConfig',
],
'rattail.emails': [
'corporal = corporal.emails',
],
}, },
) )