fix: avoid deprecated AppProvider.load_object()
method
This commit is contained in:
parent
c56a3d4cd5
commit
6cece2c41e
|
@ -34,9 +34,9 @@ class CoreProvider(RattailProvider):
|
|||
|
||||
def get_corepos_handler(self, **kwargs):
|
||||
if not hasattr(self, 'corepos_handler'):
|
||||
spec = self.config.get('rattail', 'corepos.handler',
|
||||
spec = self.config.get('rattail.corepos.handler',
|
||||
default='rattail_corepos.app:CoreHandler')
|
||||
factory = self.load_object(spec)
|
||||
factory = self.app.load_object(spec)
|
||||
self.corepos_handler = factory(self.config, **kwargs)
|
||||
return self.corepos_handler
|
||||
|
||||
|
|
Loading…
Reference in a new issue