From 253791134a269763bd8c8f48ea10e192ca9c07ad Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 19 Aug 2024 09:42:17 -0500 Subject: [PATCH] fix: avoid deprecated base class for config extension --- rattail_nationbuilder/config.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rattail_nationbuilder/config.py b/rattail_nationbuilder/config.py index de2aef3..0c6fa3c 100644 --- a/rattail_nationbuilder/config.py +++ b/rattail_nationbuilder/config.py @@ -2,7 +2,7 @@ ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2023 Lance Edgar +# Copyright © 2010-2024 Lance Edgar # # This file is part of Rattail. # @@ -24,10 +24,10 @@ Config Extension """ -from rattail.config import ConfigExtension +from wuttjamaican.conf import WuttaConfigExtension -class RattailNationBuilderExtension(ConfigExtension): +class RattailNationBuilderExtension(WuttaConfigExtension): """ Config extension for rattail-nationbuilder """ @@ -36,7 +36,7 @@ class RattailNationBuilderExtension(ConfigExtension): def configure(self, config): # rattail import-nationbuilder - config.setdefault('rattail.importing', 'to_rattail.from_nationbulder.import.default_handler', + config.setdefault('rattail.importing.to_rattail.from_nationbulder.import.default_handler', 'rattail_nationbuilder.importing.nationbuilder:FromNationBuilderToRattail') - config.setdefault('rattail.importing', 'to_rattail.from_nationbuilder.import.default_cmd', + config.setdefault('rattail.importing.to_rattail.from_nationbuilder.import.default_cmd', 'rattail import-nationbuilder')