Avoid deprecated base class, per upstream changes

This commit is contained in:
Lance Edgar 2021-12-30 15:53:59 -06:00
parent 9045965035
commit 74b9ec5e1e
2 changed files with 6 additions and 6 deletions

View file

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

View file

@ -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.
""" """