Tweak some importers, per upstream changes
also some python3 tweaks
This commit is contained in:
parent
02a3a4b11b
commit
1dcb22a865
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue