Add way to override particular 'essential' views

This commit is contained in:
Lance Edgar 2023-01-18 18:41:23 -06:00
parent 79e4e596e8
commit 2b1fd9e986

View file

@ -27,21 +27,27 @@ Essential views for convenient includes
from __future__ import unicode_literals, absolute_import
def defaults(config, **kwargs):
mod = lambda spec: kwargs.get(spec, spec)
config.include(mod('tailbone.views.auth'))
config.include(mod('tailbone.views.common'))
config.include(mod('tailbone.views.datasync'))
config.include(mod('tailbone.views.email'))
config.include(mod('tailbone.views.importing'))
config.include(mod('tailbone.views.luigi'))
config.include(mod('tailbone.views.menus'))
config.include(mod('tailbone.views.people'))
config.include(mod('tailbone.views.permissions'))
config.include(mod('tailbone.views.progress'))
config.include(mod('tailbone.views.reports'))
config.include(mod('tailbone.views.roles'))
config.include(mod('tailbone.views.settings'))
config.include(mod('tailbone.views.tables'))
config.include(mod('tailbone.views.upgrades'))
config.include(mod('tailbone.views.users'))
config.include(mod('tailbone.views.views'))
def includeme(config):
config.include('tailbone.views.auth')
config.include('tailbone.views.common')
config.include('tailbone.views.datasync')
config.include('tailbone.views.email')
config.include('tailbone.views.importing')
config.include('tailbone.views.luigi')
config.include('tailbone.views.menus')
config.include('tailbone.views.people')
config.include('tailbone.views.permissions')
config.include('tailbone.views.progress')
config.include('tailbone.views.reports')
config.include('tailbone.views.roles')
config.include('tailbone.views.settings')
config.include('tailbone.views.tables')
config.include('tailbone.views.upgrades')
config.include('tailbone.views.users')
config.include('tailbone.views.views')
defaults(config)