Tweak project/essentials view config per upstream changes

This commit is contained in:
Lance Edgar 2023-05-05 10:46:04 -05:00
parent 3fb08869e0
commit 97db13a19f
2 changed files with 9 additions and 9 deletions

View file

@ -73,8 +73,8 @@ class DemoMenuHandler(base.MenuHandler):
{'type': 'sep'}, {'type': 'sep'},
{ {
'title': "Generate New Project", 'title': "Generate New Project",
'route': 'generate_project', 'route': 'generated_projects.create',
'perm': 'common.generate_project', 'perm': 'generated_projects.create',
}, },
], ],
} }

View file

@ -3,19 +3,21 @@
Web views Web views
""" """
from tailbone.views import essentials
def includeme(config): def includeme(config):
# essential views # tailbone essentials
from tailbone.views.essentials import defaults as essentials essentials.defaults(config, **{
essentials(config, **{
# overrides
'tailbone.views.upgrades': 'rattail_demo.web.views.upgrades', '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.categories')
config.include('tailbone.views.customers') config.include('tailbone.views.customers')
config.include('tailbone.views.customergroups')
config.include('tailbone.views.departments') config.include('tailbone.views.departments')
config.include('tailbone.views.employees') config.include('tailbone.views.employees')
config.include('tailbone.views.families') config.include('tailbone.views.families')
@ -49,9 +51,7 @@ def includeme(config):
config.include('tailbone.views.batch.handheld') config.include('tailbone.views.batch.handheld')
config.include('tailbone.views.batch.inventory') config.include('tailbone.views.batch.inventory')
config.include('tailbone.views.batch.importer') config.include('tailbone.views.batch.importer')
config.include('tailbone.views.batch.vendorcatalog')
# trainwreck # trainwreck
config.include('tailbone.views.trainwreck.defaults') config.include('tailbone.views.trainwreck.defaults')
# generate new project
config.include('tailbone.views.projects')