Fix bug when fetching corepos handler
This commit is contained in:
parent
9a53b58972
commit
6e1d2544c8
|
@ -72,7 +72,7 @@ class VendorCatalogHandler(base.VendorCatalogHandler):
|
|||
if not vendor_id:
|
||||
raise ValueError("Batch vendor does not have valid CORE-POS ID")
|
||||
|
||||
self.api = self.get_corepos_handler.make_webapi()
|
||||
self.api = self.app.get_corepos_handler.make_webapi()
|
||||
self.update_corepos(batch, rows, vendor_id, progress=progress,
|
||||
# update_product_costs=kwargs.get('update_product_costs', False),
|
||||
)
|
||||
|
|
|
@ -99,7 +99,7 @@ class FromCOREPOSAPI(importing.Importer):
|
|||
self.establish_api()
|
||||
|
||||
def establish_api(self):
|
||||
self.api = self.get_corepos_handler().make_webapi()
|
||||
self.api = self.app.get_corepos_handler().make_webapi()
|
||||
|
||||
def should_ignore_new_members(self):
|
||||
if hasattr(self, 'ignore_new_members'):
|
||||
|
|
Loading…
Reference in a new issue