Coverage for src/sideshow_corepos/config.py: 0%
6 statements
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-20 09:00 -0600
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-20 09:00 -0600
1# -*- coding: utf-8; -*-
2################################################################################
3#
4# Sideshow-COREPOS -- Case/Special Order Tracker for CORE-POS
5# Copyright © 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-COREPOS config extension
25"""
27from wuttjamaican.conf import WuttaConfigExtension
30class SideshowCoreposConfig(WuttaConfigExtension):
31 """
32 Config extension for Sideshow-COREPOS.
34 This establishes some config defaults specific to Sideshow-COREPOS.
35 """
36 key = 'sideshow_corepos'
38 def configure(self, config):
39 """ """
41 # batch handlers
42 config.setdefault(f'{config.appname}.batch.neworder.handler.spec',
43 'sideshow_corepos.batch.neworder:NewOrderBatchHandler')
45 # web app menu
46 config.setdefault(f'{config.appname}.web.menus.handler.spec',
47 'sideshow_corepos.web.menus:SideshowMenuHandler')