Tweak some importers, per upstream changes

also some python3 tweaks
This commit is contained in:
Lance Edgar 2020-03-03 23:27:17 -06:00
parent 02a3a4b11b
commit 1dcb22a865
10 changed files with 24 additions and 28 deletions

View file

@ -2,7 +2,7 @@
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2019 Lance Edgar
# Copyright © 2010-2020 Lance Edgar
#
# This file is part of Rattail.
#
@ -24,9 +24,7 @@
CORE POS coupon views
"""
import six
from corepos.db import model as corepos
from corepos.db.office_op import model as corepos
from corepos import enum as corepos_enum
from rattail.time import localtime
@ -97,7 +95,7 @@ class HouseCouponView(CoreOfficeMasterView):
if not value:
return ""
value = localtime(self.rattail_config, value)
return six.text_type(value.date())
return str(value.date())
def configure_form(self, f):
super(HouseCouponView, self).configure_form(f)

View file

@ -2,7 +2,7 @@
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2019 Lance Edgar
# Copyright © 2010-2020 Lance Edgar
#
# This file is part of Rattail.
#
@ -24,7 +24,7 @@
CORE POS customer views
"""
from corepos.db import model as corepos
from corepos.db.office_op import model as corepos
from .master import CoreOfficeMasterView

View file

@ -2,7 +2,7 @@
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2019 Lance Edgar
# Copyright © 2010-2020 Lance Edgar
#
# This file is part of Rattail.
#
@ -24,7 +24,7 @@
CORE-POS department views
"""
from corepos.db import model as corepos
from corepos.db.office_op import model as corepos
from .master import CoreOfficeMasterView

View file

@ -2,7 +2,7 @@
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2019 Lance Edgar
# Copyright © 2010-2020 Lance Edgar
#
# This file is part of Rattail.
#
@ -24,7 +24,7 @@
CORE-POS employee views
"""
from corepos.db import model as corepos
from corepos.db.office_op import model as corepos
from .master import CoreOfficeMasterView

View file

@ -2,7 +2,7 @@
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2019 Lance Edgar
# Copyright © 2010-2020 Lance Edgar
#
# This file is part of Rattail.
#
@ -24,9 +24,7 @@
CORE-POS member views
"""
import six
from corepos.db import model as corepos
from corepos.db.office_op import model as corepos
from webhelpers2.html import HTML
@ -118,7 +116,7 @@ class MemberView(CoreOfficeMasterView):
items = []
for dates in member.dates:
items.append(HTML.tag('li', c=six.text_type(dates)))
items.append(HTML.tag('li', c=str(dates)))
return HTML.tag('ul', c=items)

View file

@ -2,7 +2,7 @@
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2019 Lance Edgar
# Copyright © 2010-2020 Lance Edgar
#
# This file is part of Rattail.
#
@ -24,7 +24,7 @@
CORE POS parameter views
"""
from corepos.db import model as corepos
from corepos.db.office_op import model as corepos
from .master import CoreOfficeMasterView

View file

@ -2,7 +2,7 @@
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2019 Lance Edgar
# Copyright © 2010-2020 Lance Edgar
#
# This file is part of Rattail.
#
@ -24,9 +24,9 @@
CORE-POS product views
"""
from webhelpers2.html import HTML
from corepos.db.office_op import model as corepos
from corepos.db import model as corepos
from webhelpers2.html import HTML
from .master import CoreOfficeMasterView

View file

@ -2,7 +2,7 @@
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2019 Lance Edgar
# Copyright © 2010-2020 Lance Edgar
#
# This file is part of Rattail.
#
@ -24,7 +24,7 @@
CORE-POS subdepartment views
"""
from corepos.db import model as corepos
from corepos.db.office_op import model as corepos
from .master import CoreOfficeMasterView

View file

@ -2,7 +2,7 @@
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2019 Lance Edgar
# Copyright © 2010-2020 Lance Edgar
#
# This file is part of Rattail.
#
@ -24,9 +24,9 @@
CORE-POS transaction views
"""
from corepos.trans.db import model as coretrans
from corepos.db.office_trans import model as coretrans
from rattail_corepos.corepos.importing.square import FromSquareToCoreTrans
from rattail_corepos.corepos.importing.db.square import FromSquareToCoreTrans
from .master import CoreOfficeMasterView
from tailbone_corepos.db import CoreTransSession

View file

@ -2,7 +2,7 @@
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2019 Lance Edgar
# Copyright © 2010-2020 Lance Edgar
#
# This file is part of Rattail.
#
@ -24,7 +24,7 @@
CORE-POS vendor views
"""
from corepos.db import model as corepos
from corepos.db.office_op import model as corepos
from .master import CoreOfficeMasterView