fix: avoid deprecated method in app provider
This commit is contained in:
parent
253791134a
commit
d1d181bb43
|
@ -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.
|
||||||
#
|
#
|
||||||
|
@ -36,7 +36,7 @@ class NationBuilderProvider(RattailProvider):
|
||||||
if 'nationbuilder' not in self.handlers:
|
if 'nationbuilder' not in self.handlers:
|
||||||
spec = self.config.get('rattail', 'nationbuilder.handler',
|
spec = self.config.get('rattail', 'nationbuilder.handler',
|
||||||
default='rattail_nationbuilder.app:NationBuilderHandler')
|
default='rattail_nationbuilder.app:NationBuilderHandler')
|
||||||
factory = self.load_object(spec)
|
factory = self.app.load_object(spec)
|
||||||
self.handlers['nationbuilder'] = factory(self.config, **kwargs)
|
self.handlers['nationbuilder'] = factory(self.config, **kwargs)
|
||||||
return self.handlers['nationbuilder']
|
return self.handlers['nationbuilder']
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue