Coverage for .tox / coverage / lib / python3.11 / site-packages / sideshow / config.py: 100%
11 statements
« prev ^ index » next coverage.py v7.13.0, created at 2025-12-15 17:10 -0600
« prev ^ index » next coverage.py v7.13.0, created at 2025-12-15 17:10 -0600
1# -*- coding: utf-8; -*-
2################################################################################
3#
4# Sideshow -- Case/Special Order Tracker
5# Copyright © 2024-2025 Lance Edgar
6#
7# This file is part of Sideshow.
8#
9# Sideshow is free software: you can redistribute it and/or modify it
10# under the terms of the GNU General Public License as published by
11# the Free Software Foundation, either version 3 of the License, or
12# (at your option) any later version.
13#
14# Sideshow is distributed in the hope that it will be useful, but
15# WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17# General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
20# along with Sideshow. If not, see <http://www.gnu.org/licenses/>.
21#
22################################################################################
23"""
24Sideshow config extension
25"""
27from wuttjamaican.conf import WuttaConfigExtension
30class SideshowConfig(WuttaConfigExtension):
31 """
32 Config extension for Sideshow.
34 This establishes some config defaults specific to Sideshow.
35 """
37 key = "sideshow"
39 def configure(self, config): # pylint: disable=empty-docstring
40 """ """
42 # app info
43 config.setdefault(f"{config.appname}.app_title", "Sideshow")
44 config.setdefault(f"{config.appname}.app_dist", "Sideshow")
46 # app model, enum
47 config.setdefault(f"{config.appname}.model_spec", "sideshow.db.model")
48 config.setdefault(f"{config.appname}.enum_spec", "sideshow.enum")
50 # batch handlers
51 config.setdefault(
52 f"{config.appname}.batch.neworder.handler.default_spec",
53 "sideshow.batch.neworder:NewOrderBatchHandler",
54 )
56 # web app menu
57 config.setdefault(
58 f"{config.appname}.web.menus.handler.default_spec",
59 "sideshow.web.menus:SideshowMenuHandler",
60 )
62 # web app libcache
63 config.setdefault("wuttaweb.static_libcache.module", "sideshow.web.static")