Coverage for .tox/coverage/lib/python3.11/site-packages/wuttaweb/views/essential.py: 100%
12 statements
« prev ^ index » next coverage.py v7.6.1, created at 2024-08-26 14:40 -0500
« prev ^ index » next coverage.py v7.6.1, created at 2024-08-26 14:40 -0500
1# -*- coding: utf-8; -*-
2################################################################################
3#
4# wuttaweb -- Web App for Wutta Framework
5# Copyright © 2024 Lance Edgar
6#
7# This file is part of Wutta Framework.
8#
9# Wutta Framework is free software: you can redistribute it and/or modify it
10# under the terms of the GNU General Public License as published by the Free
11# Software Foundation, either version 3 of the License, or (at your option) any
12# later version.
13#
14# Wutta Framework is distributed in the hope that it will be useful, but
15# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
17# more details.
18#
19# You should have received a copy of the GNU General Public License along with
20# Wutta Framework. If not, see <http://www.gnu.org/licenses/>.
21#
22################################################################################
23"""
24Essential views for convenient includes
26Most apps should include this module::
28 pyramid_config.include('wuttaweb.views.essential')
30That will in turn include the following modules:
32* :mod:`wuttaweb.views.auth`
33* :mod:`wuttaweb.views.common`
34* :mod:`wuttaweb.views.settings`
35* :mod:`wuttaweb.views.progress`
36* :mod:`wuttaweb.views.people`
37* :mod:`wuttaweb.views.roles`
38* :mod:`wuttaweb.views.users`
39* :mod:`wuttaweb.views.upgrades`
40"""
43def defaults(config, **kwargs):
44 mod = lambda spec: kwargs.get(spec, spec)
46 config.include(mod('wuttaweb.views.auth'))
47 config.include(mod('wuttaweb.views.common'))
48 config.include(mod('wuttaweb.views.settings'))
49 config.include(mod('wuttaweb.views.progress'))
50 config.include(mod('wuttaweb.views.people'))
51 config.include(mod('wuttaweb.views.roles'))
52 config.include(mod('wuttaweb.views.users'))
53 config.include(mod('wuttaweb.views.upgrades'))
56def includeme(config):
57 defaults(config)