fix: avoid deprecated AppProvider.load_object() method

This commit is contained in:
Lance Edgar 2024-07-18 08:32:45 -05:00
parent c56a3d4cd5
commit 6cece2c41e

View file

@ -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