Changeset - 74b9ec5e1e2b
[Not reviewed]
0 2 0
Lance Edgar - 3 years ago 2021-12-30 15:53:59
lance@edbob.org
Avoid deprecated base class, per upstream changes
2 files changed with 6 insertions and 6 deletions:
0 comments (0 inline, 0 general) First comment
rattail_corepos/datasync/corepos.py
Show inline comments
 
@@ -2,7 +2,7 @@
 
################################################################################
 
#
 
#  Rattail -- Retail Software Framework
 
#  Copyright © 2010-2020 Lance Edgar
 
#  Copyright © 2010-2021 Lance Edgar
 
#
 
#  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 rattail.db import model
 
from rattail.datasync import DataSyncWatcher, NewDataSyncImportConsumer
 
from rattail.datasync import DataSyncWatcher, DataSyncImportConsumer
 

	
 

	
 
class CoreOfficeOpWatcher(DataSyncWatcher):
 
@@ -149,7 +149,7 @@ class COREPOSProductWatcher(DataSyncWatcher):
 
        return changes
 

	
 

	
 
class FromRattailToCore(NewDataSyncImportConsumer):
 
class FromRattailToCore(DataSyncImportConsumer):
 
    """
 
    Rattail -> CORE POS datasync consumer
 
    """
rattail_corepos/datasync/rattail.py
Show inline comments
 
@@ -28,11 +28,11 @@ from sqlalchemy.orm.exc import NoResultFound
 

	
 
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
 

	
 

	
 
class FromCOREAPIToRattail(NewDataSyncImportConsumer):
 
class FromCOREAPIToRattail(DataSyncImportConsumer):
 
    """
 
    Consumer for CORE POS (API) -> Rattail datasync
 
    """
 
@@ -145,7 +145,7 @@ class FromCOREAPIToRattail(NewDataSyncImportConsumer):
 
                    return self.api.get_product(vendor_item['upc'])
 

	
 

	
 
class FromCOREPOSToRattailBase(NewDataSyncImportConsumer):
 
class FromCOREPOSToRattailBase(DataSyncImportConsumer):
 
    """
 
    Base class for CORE POS -> Rattail data sync consumers.
 
    """
0 comments (0 inline, 0 general) First comment
You need to be logged in to comment. Login now