Avoid deprecated base class, per upstream changes
This commit is contained in:
parent
9045965035
commit
74b9ec5e1e
|
@ -2,7 +2,7 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# Rattail -- Retail Software Framework
|
# Rattail -- Retail Software Framework
|
||||||
# Copyright © 2010-2020 Lance Edgar
|
# Copyright © 2010-2021 Lance Edgar
|
||||||
#
|
#
|
||||||
# This file is part of Rattail.
|
# This file is part of Rattail.
|
||||||
#
|
#
|
||||||
|
@ -29,7 +29,7 @@ import sqlalchemy as sa
|
||||||
from corepos.db.office_op import Session as CoreSession, model as corepos
|
from corepos.db.office_op import Session as CoreSession, model as corepos
|
||||||
|
|
||||||
from rattail.db import model
|
from rattail.db import model
|
||||||
from rattail.datasync import DataSyncWatcher, NewDataSyncImportConsumer
|
from rattail.datasync import DataSyncWatcher, DataSyncImportConsumer
|
||||||
|
|
||||||
|
|
||||||
class CoreOfficeOpWatcher(DataSyncWatcher):
|
class CoreOfficeOpWatcher(DataSyncWatcher):
|
||||||
|
@ -149,7 +149,7 @@ class COREPOSProductWatcher(DataSyncWatcher):
|
||||||
return changes
|
return changes
|
||||||
|
|
||||||
|
|
||||||
class FromRattailToCore(NewDataSyncImportConsumer):
|
class FromRattailToCore(DataSyncImportConsumer):
|
||||||
"""
|
"""
|
||||||
Rattail -> CORE POS datasync consumer
|
Rattail -> CORE POS datasync consumer
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -28,11 +28,11 @@ from sqlalchemy.orm.exc import NoResultFound
|
||||||
|
|
||||||
from corepos.db.office_op import Session as CoreSession, model as corepos
|
from corepos.db.office_op import Session as CoreSession, model as corepos
|
||||||
|
|
||||||
from rattail.datasync import NewDataSyncImportConsumer
|
from rattail.datasync import DataSyncImportConsumer
|
||||||
from rattail_corepos.corepos.api import make_corepos_api
|
from rattail_corepos.corepos.api import make_corepos_api
|
||||||
|
|
||||||
|
|
||||||
class FromCOREAPIToRattail(NewDataSyncImportConsumer):
|
class FromCOREAPIToRattail(DataSyncImportConsumer):
|
||||||
"""
|
"""
|
||||||
Consumer for CORE POS (API) -> Rattail datasync
|
Consumer for CORE POS (API) -> Rattail datasync
|
||||||
"""
|
"""
|
||||||
|
@ -145,7 +145,7 @@ class FromCOREAPIToRattail(NewDataSyncImportConsumer):
|
||||||
return self.api.get_product(vendor_item['upc'])
|
return self.api.get_product(vendor_item['upc'])
|
||||||
|
|
||||||
|
|
||||||
class FromCOREPOSToRattailBase(NewDataSyncImportConsumer):
|
class FromCOREPOSToRattailBase(DataSyncImportConsumer):
|
||||||
"""
|
"""
|
||||||
Base class for CORE POS -> Rattail data sync consumers.
|
Base class for CORE POS -> Rattail data sync consumers.
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue