Include the 'essential' views
This commit is contained in:
parent
400133a98d
commit
e7248b4589
|
@ -6,33 +6,26 @@ Web views
|
||||||
|
|
||||||
def includeme(config):
|
def includeme(config):
|
||||||
|
|
||||||
# core views
|
# essential views
|
||||||
config.include('rattail_demo.web.views.common')
|
from tailbone.views.essentials import defaults as essentials
|
||||||
config.include('tailbone.views.auth')
|
essentials(config, **{
|
||||||
config.include('tailbone.views.progress')
|
# overrides
|
||||||
config.include('tailbone.views.tables')
|
'tailbone.views.upgrades': 'rattail_demo.web.views.upgrades',
|
||||||
|
})
|
||||||
|
|
||||||
# main table views
|
# main table views
|
||||||
config.include('tailbone.views.brands')
|
config.include('tailbone.views.brands')
|
||||||
config.include('tailbone.views.customers')
|
config.include('tailbone.views.customers')
|
||||||
config.include('tailbone.views.datasync')
|
|
||||||
config.include('tailbone.views.departments')
|
config.include('tailbone.views.departments')
|
||||||
config.include('tailbone.views.email')
|
|
||||||
config.include('tailbone.views.employees')
|
config.include('tailbone.views.employees')
|
||||||
config.include('tailbone.views.families')
|
config.include('tailbone.views.families')
|
||||||
config.include('tailbone.views.members')
|
config.include('tailbone.views.members')
|
||||||
config.include('tailbone.views.messages')
|
config.include('tailbone.views.messages')
|
||||||
config.include('tailbone.views.people')
|
|
||||||
config.include('rattail_demo.web.views.products')
|
config.include('rattail_demo.web.views.products')
|
||||||
config.include('tailbone.views.reportcodes')
|
config.include('tailbone.views.reportcodes')
|
||||||
config.include('tailbone.views.reports')
|
|
||||||
config.include('tailbone.views.roles')
|
|
||||||
config.include('tailbone.views.settings')
|
|
||||||
config.include('tailbone.views.stores')
|
config.include('tailbone.views.stores')
|
||||||
config.include('tailbone.views.subdepartments')
|
config.include('tailbone.views.subdepartments')
|
||||||
config.include('tailbone.views.tempmon')
|
config.include('tailbone.views.tempmon')
|
||||||
config.include('rattail_demo.web.views.upgrades')
|
|
||||||
config.include('tailbone.views.users')
|
|
||||||
config.include('tailbone.views.vendors')
|
config.include('tailbone.views.vendors')
|
||||||
config.include('tailbone.views.uoms')
|
config.include('tailbone.views.uoms')
|
||||||
|
|
||||||
|
@ -62,6 +55,3 @@ def includeme(config):
|
||||||
|
|
||||||
# generate new project
|
# generate new project
|
||||||
config.include('tailbone.views.projects')
|
config.include('tailbone.views.projects')
|
||||||
|
|
||||||
# admin views
|
|
||||||
config.include('tailbone.views.luigi')
|
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
# -*- coding: utf-8; -*-
|
|
||||||
"""
|
|
||||||
Common views
|
|
||||||
"""
|
|
||||||
|
|
||||||
from tailbone.views import common as base
|
|
||||||
|
|
||||||
import rattail_demo
|
|
||||||
|
|
||||||
|
|
||||||
class CommonView(base.CommonView):
|
|
||||||
|
|
||||||
project_title = "Rattail Demo"
|
|
||||||
project_version = rattail_demo.__version__ + '+dev'
|
|
||||||
|
|
||||||
def get_packages(self):
|
|
||||||
import corepos
|
|
||||||
import rattail_corepos
|
|
||||||
import rattail_tempmon
|
|
||||||
import tailbone_corepos
|
|
||||||
|
|
||||||
packages = super(CommonView, self).get_packages()
|
|
||||||
packages['pyCOREPOS'] = corepos.__version__
|
|
||||||
packages['rattail-corepos'] = rattail_corepos.__version__
|
|
||||||
packages['rattail-tempmon'] = rattail_tempmon.__version__
|
|
||||||
packages['tailbone-corepos'] = tailbone_corepos.__version__
|
|
||||||
for key in packages:
|
|
||||||
packages[key] = packages[key] + '+dev'
|
|
||||||
return packages
|
|
||||||
|
|
||||||
|
|
||||||
def includeme(config):
|
|
||||||
CommonView.defaults(config)
|
|
Loading…
Reference in a new issue