Changeset - f720a9690d63
[Not reviewed]
0 1 0
Lance Edgar (lance) - 3 years ago 2022-03-08 14:17:18
lance@edbob.org
Allow "default" batch handlers to be registered in config

so that the package actually providing them, can register defaults,
without setting value of *actual* registered handler
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rattail/app.py
Show inline comments
 
@@ -342,6 +342,8 @@ class AppHandler(object):
 
        # otherwise caller-supplied default is assumed
 
        spec = self.config.get('rattail.batch', '{}.handler'.format(key),
 
                               default=default)
 
        if not spec:
 
            spec = self.config.get('rattail.batch', '{}.handler.default'.format(key))
 

	
 
        # TODO: this probably should go away?
 
        # if none of the above gave us a spec, check for common 'importer' type
0 comments (0 inline, 0 general)