Let custom vendor catalog batch handler be specified in config file.

This was using database settings exclusively.
This commit is contained in:
Lance Edgar 2015-02-13 21:22:36 -06:00
parent ae5ff89c7f
commit 730a2a2f01

View file

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