Refactor all "easy" views per master4

This commit is contained in:
Lance Edgar 2018-02-04 10:46:27 -06:00
parent 410ee8eb65
commit 88fe195615
32 changed files with 51 additions and 52 deletions

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2017 Lance Edgar # Copyright © 2010-2018 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -37,7 +37,7 @@ from pyramid.response import FileResponse
from webhelpers2.html import HTML, tags from webhelpers2.html import HTML, tags
from tailbone import grids from tailbone import grids
from tailbone.views import MasterView3 as MasterView from tailbone.views import MasterView4 as MasterView
class EmailBouncesView(MasterView): class EmailBouncesView(MasterView):

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2017 Lance Edgar # Copyright © 2010-2018 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -28,7 +28,7 @@ from __future__ import unicode_literals, absolute_import
from rattail.db import model from rattail.db import model
from tailbone.views import MasterView3 as MasterView, AutocompleteView from tailbone.views import MasterView4 as MasterView, AutocompleteView
class BrandsView(MasterView): class BrandsView(MasterView):

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2017 Lance Edgar # Copyright © 2010-2018 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -28,7 +28,7 @@ from __future__ import unicode_literals, absolute_import
from rattail.db import model from rattail.db import model
from tailbone.views import MasterView3 as MasterView from tailbone.views import MasterView4 as MasterView
class CategoriesView(MasterView): class CategoriesView(MasterView):

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2017 Lance Edgar # Copyright © 2010-2018 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -29,7 +29,7 @@ from __future__ import unicode_literals, absolute_import
from rattail.db import model from rattail.db import model
from tailbone.db import Session from tailbone.db import Session
from tailbone.views import MasterView3 as MasterView from tailbone.views import MasterView4 as MasterView
class CustomerGroupsView(MasterView): class CustomerGroupsView(MasterView):

View file

@ -33,7 +33,7 @@ from sqlalchemy import orm
from rattail.db import model from rattail.db import model
from rattail.time import localtime from rattail.time import localtime
from tailbone.views import MasterView3 as MasterView from tailbone.views import MasterView4 as MasterView
from tailbone.util import raw_datetime from tailbone.util import raw_datetime

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2017 Lance Edgar # Copyright © 2010-2018 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -31,7 +31,7 @@ import logging
from rattail.db import model from rattail.db import model
from tailbone.views import MasterView3 as MasterView from tailbone.views import MasterView4 as MasterView
log = logging.getLogger(__name__) log = logging.getLogger(__name__)

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2017 Lance Edgar # Copyright © 2010-2018 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -33,7 +33,7 @@ from rattail.db import model
from deform import widget as dfwidget from deform import widget as dfwidget
from tailbone import grids from tailbone import grids
from tailbone.views import MasterView3 as MasterView, AutocompleteView from tailbone.views import MasterView4 as MasterView, AutocompleteView
class DepartmentsView(MasterView): class DepartmentsView(MasterView):

View file

@ -28,8 +28,7 @@ from __future__ import unicode_literals, absolute_import
from rattail.db import model from rattail.db import model
from tailbone import forms from tailbone.views import MasterView4 as MasterView
from tailbone.views import MasterView3 as MasterView
class DepositLinksView(MasterView): class DepositLinksView(MasterView):

View file

@ -37,7 +37,7 @@ from deform import widget as dfwidget
from webhelpers2.html import HTML from webhelpers2.html import HTML
from tailbone.db import Session from tailbone.db import Session
from tailbone.views import View, MasterView3 as MasterView from tailbone.views import View, MasterView4 as MasterView
class ProfilesView(MasterView): class ProfilesView(MasterView):

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2017 Lance Edgar # Copyright © 2010-2018 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -37,7 +37,7 @@ from webhelpers2.html import tags, HTML
from tailbone import grids from tailbone import grids
from tailbone.db import Session from tailbone.db import Session
from tailbone.views import MasterView3 as MasterView, AutocompleteView from tailbone.views import MasterView4 as MasterView, AutocompleteView
class EmployeesView(MasterView): class EmployeesView(MasterView):

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2017 Lance Edgar # Copyright © 2010-2018 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -36,7 +36,7 @@ from pyramid.response import FileResponse
from webhelpers2.html import HTML, tags from webhelpers2.html import HTML, tags
from tailbone import forms2 as forms from tailbone import forms2 as forms
from tailbone.views import MasterView3 as MasterView from tailbone.views import MasterView4 as MasterView
class ExportMasterView(MasterView): class ExportMasterView(MasterView):

View file

@ -28,7 +28,7 @@ from __future__ import unicode_literals, absolute_import
from rattail.db import model from rattail.db import model
from tailbone.views import MasterView3 as MasterView from tailbone.views import MasterView4 as MasterView
class FamiliesView(MasterView): class FamiliesView(MasterView):

View file

@ -42,7 +42,7 @@ import formencode as fe
from webhelpers2.html import HTML, tags from webhelpers2.html import HTML, tags
from tailbone import forms, grids from tailbone import forms, grids
from tailbone.views import MasterView3 as MasterView from tailbone.views import MasterView4 as MasterView
from tailbone.views.batch import BatchMasterView3 as BatchMasterView from tailbone.views.batch import BatchMasterView3 as BatchMasterView

View file

@ -31,7 +31,7 @@ from rattail.db import model
from pyramid.httpexceptions import HTTPFound from pyramid.httpexceptions import HTTPFound
from tailbone.db import Session from tailbone.db import Session
from tailbone.views import MasterView3 as MasterView from tailbone.views import MasterView4 as MasterView
class ProfilesView(MasterView): class ProfilesView(MasterView):

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2017 Lance Edgar # Copyright © 2010-2018 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -37,7 +37,7 @@ from pyramid import httpexceptions
from webhelpers2.html import tags, HTML from webhelpers2.html import tags, HTML
from tailbone.db import Session from tailbone.db import Session
from tailbone.views import MasterView3 as MasterView from tailbone.views import MasterView4 as MasterView
from tailbone.util import raw_datetime from tailbone.util import raw_datetime

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2017 Lance Edgar # Copyright © 2010-2018 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -34,7 +34,7 @@ from rattail.db import model, api
from pyramid.httpexceptions import HTTPFound, HTTPNotFound from pyramid.httpexceptions import HTTPFound, HTTPNotFound
from webhelpers2.html import HTML, tags from webhelpers2.html import HTML, tags
from tailbone.views import MasterView3 as MasterView, AutocompleteView from tailbone.views import MasterView4 as MasterView, AutocompleteView
class PeopleView(MasterView): class PeopleView(MasterView):

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2017 Lance Edgar # Copyright © 2010-2018 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -35,7 +35,7 @@ import wtforms
from webhelpers2.html import HTML from webhelpers2.html import HTML
from tailbone.db import Session from tailbone.db import Session
from tailbone.views import MasterView3 as MasterView from tailbone.views import MasterView4 as MasterView
class PrincipalMasterView(MasterView): class PrincipalMasterView(MasterView):

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2017 Lance Edgar # Copyright © 2010-2018 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -47,7 +47,7 @@ from webhelpers2.html import tags, HTML
from tailbone import forms2 as forms, grids from tailbone import forms2 as forms, grids
from tailbone.db import Session from tailbone.db import Session
from tailbone.views import MasterView3 as MasterView, AutocompleteView from tailbone.views import MasterView4 as MasterView, AutocompleteView
from tailbone.progress import SessionProgress from tailbone.progress import SessionProgress
from tailbone.util import raw_datetime from tailbone.util import raw_datetime

View file

@ -31,7 +31,7 @@ from rattail.db import model
from webhelpers2.html import tags from webhelpers2.html import tags
from tailbone import grids from tailbone import grids
from tailbone.views import MasterView3 as MasterView from tailbone.views import MasterView4 as MasterView
class PurchaseCreditView(MasterView): class PurchaseCreditView(MasterView):

View file

@ -28,7 +28,7 @@ from __future__ import unicode_literals, absolute_import
from rattail.db import model from rattail.db import model
from tailbone.views import MasterView3 as MasterView from tailbone.views import MasterView4 as MasterView
class ReportCodesView(MasterView): class ReportCodesView(MasterView):

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2017 Lance Edgar # Copyright © 2010-2018 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -32,7 +32,7 @@ from rattail.db import model
import colander import colander
from tailbone.views import MasterView3 as MasterView from tailbone.views import MasterView4 as MasterView
class SettingsView(MasterView): class SettingsView(MasterView):

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2017 Lance Edgar # Copyright © 2010-2018 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -33,7 +33,7 @@ import humanize
from rattail.db import model from rattail.db import model
from rattail.time import localtime from rattail.time import localtime
from tailbone.views import MasterView3 as MasterView from tailbone.views import MasterView4 as MasterView
def render_shift_length(shift, field): def render_shift_length(shift, field):

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2017 Lance Edgar # Copyright © 2010-2018 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -32,7 +32,7 @@ from rattail.db import model
import colander import colander
from tailbone.views import MasterView3 as MasterView from tailbone.views import MasterView4 as MasterView
class StoresView(MasterView): class StoresView(MasterView):

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2017 Lance Edgar # Copyright © 2010-2018 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -29,7 +29,7 @@ from __future__ import unicode_literals, absolute_import
from rattail.db import model from rattail.db import model
from tailbone.db import Session from tailbone.db import Session
from tailbone.views import MasterView3 as MasterView from tailbone.views import MasterView4 as MasterView
class SubdepartmentsView(MasterView): class SubdepartmentsView(MasterView):

View file

@ -26,7 +26,7 @@ Views with info about the underlying Rattail tables
from __future__ import unicode_literals, absolute_import from __future__ import unicode_literals, absolute_import
from tailbone.views import MasterView3 as MasterView from tailbone.views import MasterView4 as MasterView
class TablesView(MasterView): class TablesView(MasterView):

View file

@ -28,7 +28,7 @@ from __future__ import unicode_literals, absolute_import
from rattail.db import model from rattail.db import model
from tailbone.views import MasterView3 as MasterView from tailbone.views import MasterView4 as MasterView
class TaxesView(MasterView): class TaxesView(MasterView):

View file

@ -32,7 +32,7 @@ from tailbone import views
from tailbone.db import TempmonSession from tailbone.db import TempmonSession
class MasterView(views.MasterView3): class MasterView(views.MasterView4):
""" """
Base class for tempmon views. Base class for tempmon views.
""" """

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2017 Lance Edgar # Copyright © 2010-2018 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -43,7 +43,7 @@ from rattail.upgrades import get_upgrade_handler
from deform import widget as dfwidget from deform import widget as dfwidget
from webhelpers2.html import tags, HTML from webhelpers2.html import tags, HTML
from tailbone.views import MasterView3 as MasterView from tailbone.views import MasterView4 as MasterView
from tailbone.progress import SessionProgress, get_progress_session from tailbone.progress import SessionProgress, get_progress_session

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2017 Lance Edgar # Copyright © 2010-2018 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -40,7 +40,7 @@ from webhelpers2.html import HTML, tags
from tailbone import forms2 as forms from tailbone import forms2 as forms
from tailbone.db import Session from tailbone.db import Session
from tailbone.views import MasterView3 as MasterView from tailbone.views import MasterView4 as MasterView
from tailbone.views.principal import PrincipalMasterView, PermissionsRenderer from tailbone.views.principal import PrincipalMasterView, PermissionsRenderer

View file

@ -39,7 +39,7 @@ from webhelpers2.html import tags
from tailbone import forms2 as forms from tailbone import forms2 as forms
from tailbone.db import Session from tailbone.db import Session
from tailbone.views.batch import FileBatchMasterView3 as FileBatchMasterView from tailbone.views.batch import FileBatchMasterView4 as FileBatchMasterView
log = logging.getLogger(__name__) log = logging.getLogger(__name__)

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2017 Lance Edgar # Copyright © 2010-2018 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -32,7 +32,7 @@ from rattail.db import model
from webhelpers2.html import tags from webhelpers2.html import tags
from tailbone.views import MasterView3 as MasterView, AutocompleteView from tailbone.views import MasterView4 as MasterView, AutocompleteView
class VendorsView(MasterView): class VendorsView(MasterView):

View file

@ -33,7 +33,7 @@ from rattail.vendors.invoices import iter_invoice_parsers, require_invoice_parse
import colander import colander
from deform import widget as dfwidget from deform import widget as dfwidget
from tailbone.views.batch import FileBatchMasterView3 as FileBatchMasterView from tailbone.views.batch import FileBatchMasterView4 as FileBatchMasterView
class VendorInvoicesView(FileBatchMasterView): class VendorInvoicesView(FileBatchMasterView):