From 730a2a2f014b8eddf01b8999df21d1cb1f51a6a7 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 13 Feb 2015 21:22:36 -0600 Subject: [PATCH] Let custom vendor catalog batch handler be specified in config file. This was using database settings exclusively. --- tailbone/views/vendors/catalogs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tailbone/views/vendors/catalogs.py b/tailbone/views/vendors/catalogs.py index 2a235b5f..8aabc98b 100644 --- a/tailbone/views/vendors/catalogs.py +++ b/tailbone/views/vendors/catalogs.py @@ -99,6 +99,8 @@ class VendorCatalogCrud(FileBatchCrud): custom handler. """ handler = get_setting(Session, 'rattail.batch.vendorcatalog.handler') + if not handler: + handler = self.request.rattail_config.get('rattail.batch', 'vendorcatalog.handler') if handler: handler = load_object(handler)(self.request.rattail_config) if not handler: