Remove curated email settings

just use entry points like other apps
This commit is contained in:
Lance Edgar 2023-06-09 19:59:09 -05:00
parent 023e76973f
commit 3ece00f059
7 changed files with 0 additions and 151 deletions

View file

@ -49,7 +49,6 @@ class TheoConfig(ConfigExtension):
if integrate_corepos(config): if integrate_corepos(config):
config.setdefault('rattail', 'model', 'theo.db.model_corepos') config.setdefault('rattail', 'model', 'theo.db.model_corepos')
config.setdefault('rattail', 'settings', 'theo.appsettings.theo') config.setdefault('rattail', 'settings', 'theo.appsettings.theo')
config.setdefault('rattail.mail', 'emails', 'theo.emails.theo, theo.emails.corepos')
config.setdefault('rattail', 'products.handler', 'rattail_corepos.products:CoreProductsHandler') config.setdefault('rattail', 'products.handler', 'rattail_corepos.products:CoreProductsHandler')
config.setdefault('rattail.batch', 'vendor_catalog.handler', 'rattail_corepos.batch.vendorcatalog:VendorCatalogHandler') config.setdefault('rattail.batch', 'vendor_catalog.handler', 'rattail_corepos.batch.vendorcatalog:VendorCatalogHandler')
config.setdefault('rattail.importing', 'versions.handler', 'theo.importing.versions_corepos:FromTheoToTheoVersions') config.setdefault('rattail.importing', 'versions.handler', 'theo.importing.versions_corepos:FromTheoToTheoVersions')
@ -58,22 +57,16 @@ class TheoConfig(ConfigExtension):
elif integrate_catapult(config): elif integrate_catapult(config):
config.setdefault('rattail', 'model', 'theo.db.model_catapult') config.setdefault('rattail', 'model', 'theo.db.model_catapult')
config.setdefault('rattail', 'settings', 'theo.appsettings.theo, theo.appsettings.catapult') config.setdefault('rattail', 'settings', 'theo.appsettings.theo, theo.appsettings.catapult')
emails = ['theo.emails.theo', 'theo.emails.catapult']
if mirror_posdb(config):
emails.append('theo.emails.catapult_mirror')
config.setdefault('rattail.mail', 'emails', ', '.join(emails))
config.setdefault('rattail.importing', 'versions.handler', 'theo.importing.versions_catapult:FromTheoToTheoVersions') config.setdefault('rattail.importing', 'versions.handler', 'theo.importing.versions_catapult:FromTheoToTheoVersions')
# do we integrate w/ LOC SMS? # do we integrate w/ LOC SMS?
elif integrate_locsms(config): elif integrate_locsms(config):
config.setdefault('rattail', 'model', 'theo.db.model_locsms') config.setdefault('rattail', 'model', 'theo.db.model_locsms')
config.setdefault('rattail', 'settings', 'theo.appsettings.theo') config.setdefault('rattail', 'settings', 'theo.appsettings.theo')
config.setdefault('rattail.mail', 'emails', 'theo.emails.theo, theo.emails.locsms')
config.setdefault('rattail.importing', 'versions.handler', 'theo.importing.versions_locsms:FromTheoToTheoVersions') config.setdefault('rattail.importing', 'versions.handler', 'theo.importing.versions_locsms:FromTheoToTheoVersions')
else: # no integration else: # no integration
config.setdefault('rattail', 'settings', 'theo.appsettings.theo') config.setdefault('rattail', 'settings', 'theo.appsettings.theo')
config.setdefault('rattail.mail', 'emails', 'theo.emails.theo')
def integrate_catapult(config): def integrate_catapult(config):

View file

@ -1,27 +0,0 @@
# -*- coding: utf-8; -*-
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2020 Lance Edgar
#
# This file is part of Rattail.
#
# Rattail is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
#
# Rattail is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# Rattail. If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
"""
Theo email profile settings
"""
from rattail_onager.emails import rattail_import_catapult_updates

View file

@ -1,29 +0,0 @@
# -*- coding: utf-8; -*-
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2020 Lance Edgar
#
# This file is part of Rattail.
#
# Rattail is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
#
# Rattail is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# Rattail. If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
"""
Theo email profile settings
"""
from rattail_onager.emails import (
rattail_onager_import_catapult_updates,
)

View file

@ -1,28 +0,0 @@
# -*- coding: utf-8; -*-
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2020 Lance Edgar
#
# This file is part of Rattail.
#
# Rattail is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
#
# Rattail is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# Rattail. If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
"""
Theo email profile settings
"""
from rattail_corepos.emails import (rattail_import_corepos_api_updates,
rattail_import_corepos_db_updates)

View file

@ -1,27 +0,0 @@
# -*- coding: utf-8; -*-
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2020 Lance Edgar
#
# This file is part of Rattail.
#
# Rattail is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
#
# Rattail is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# Rattail. If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
"""
Theo email profile settings
"""
from rattail_luckysmores.emails import rattail_import_locsms_updates

View file

@ -1,33 +0,0 @@
# -*- coding: utf-8; -*-
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2021 Lance Edgar
#
# This file is part of Rattail.
#
# Rattail is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
#
# Rattail is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# Rattail. If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
"""
Theo email profile settings
"""
# bring in some common config from rattail
from rattail.emails import (upgrade_failure,
upgrade_success,
user_feedback,
rattail_import_versions_updates,
new_email_requested,
new_phone_requested)