diff --git a/rattail_corepos/app.py b/rattail_corepos/app.py index 891eef3..c004c49 100644 --- a/rattail_corepos/app.py +++ b/rattail_corepos/app.py @@ -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