Let custom vendor catalog batch handler be specified in config file.
This was using database settings exclusively.
This commit is contained in:
parent
ae5ff89c7f
commit
730a2a2f01
2
tailbone/views/vendors/catalogs.py
vendored
2
tailbone/views/vendors/catalogs.py
vendored
|
@ -99,6 +99,8 @@ class VendorCatalogCrud(FileBatchCrud):
|
||||||
custom handler.
|
custom handler.
|
||||||
"""
|
"""
|
||||||
handler = get_setting(Session, 'rattail.batch.vendorcatalog.handler')
|
handler = get_setting(Session, 'rattail.batch.vendorcatalog.handler')
|
||||||
|
if not handler:
|
||||||
|
handler = self.request.rattail_config.get('rattail.batch', 'vendorcatalog.handler')
|
||||||
if handler:
|
if handler:
|
||||||
handler = load_object(handler)(self.request.rattail_config)
|
handler = load_object(handler)(self.request.rattail_config)
|
||||||
if not handler:
|
if not handler:
|
||||||
|
|
Loading…
Reference in a new issue