fix: avoid deprecated base class for config extension
This commit is contained in:
parent
edbe306bdf
commit
253791134a
|
@ -2,7 +2,7 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# Rattail -- Retail Software Framework
|
# Rattail -- Retail Software Framework
|
||||||
# Copyright © 2010-2023 Lance Edgar
|
# Copyright © 2010-2024 Lance Edgar
|
||||||
#
|
#
|
||||||
# This file is part of Rattail.
|
# This file is part of Rattail.
|
||||||
#
|
#
|
||||||
|
@ -24,10 +24,10 @@
|
||||||
Config Extension
|
Config Extension
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from rattail.config import ConfigExtension
|
from wuttjamaican.conf import WuttaConfigExtension
|
||||||
|
|
||||||
|
|
||||||
class RattailNationBuilderExtension(ConfigExtension):
|
class RattailNationBuilderExtension(WuttaConfigExtension):
|
||||||
"""
|
"""
|
||||||
Config extension for rattail-nationbuilder
|
Config extension for rattail-nationbuilder
|
||||||
"""
|
"""
|
||||||
|
@ -36,7 +36,7 @@ class RattailNationBuilderExtension(ConfigExtension):
|
||||||
def configure(self, config):
|
def configure(self, config):
|
||||||
|
|
||||||
# rattail import-nationbuilder
|
# 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')
|
'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')
|
'rattail import-nationbuilder')
|
||||||
|
|
Loading…
Reference in a new issue