Make CORE API client via app handler, not deprecated function
This commit is contained in:
parent
7b9b6e57e2
commit
ebdb658a2c
5 changed files with 8 additions and 16 deletions
|
@ -38,7 +38,6 @@ from rattail.core import get_uuid
|
|||
from rattail.db.util import normalize_full_name
|
||||
from rattail_corepos import importing as corepos_importing
|
||||
from rattail_corepos.corepos.util import get_core_members
|
||||
from rattail_corepos.corepos.api import make_corepos_api
|
||||
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
@ -100,7 +99,7 @@ class FromCOREPOSAPI(importing.Importer):
|
|||
self.establish_api()
|
||||
|
||||
def establish_api(self):
|
||||
self.api = make_corepos_api(self.config)
|
||||
self.api = self.get_corepos_handler().make_webapi()
|
||||
|
||||
def should_ignore_new_members(self):
|
||||
if hasattr(self, 'ignore_new_members'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue