fix: update menu config per wuttaweb

This commit is contained in:
Lance Edgar 2024-07-14 11:48:13 -05:00
parent a13747582a
commit 2fda18c6cc
2 changed files with 6 additions and 4 deletions

View file

@ -38,9 +38,11 @@ class TheoConfig(ConfigExtension):
# this is the "Theo" app
config.setdefault('rattail', 'app_title', "Theo")
config.setdefault('rattail', 'app_package', 'theo')
config.setdefault('tailbone.menus', 'handler', 'theo.web.menus:TheoMenuHandler')
config.setdefault('tailbone.static_libcache.module', 'theo.web.static')
# menus
config.setdefault('rattail.web.menus.handler_spec', 'theo.web.menus:TheoMenuHandler')
# Trainwreck model is same regardless of POS
config.setdefault('rattail.trainwreck', 'model', 'rattail.trainwreck.db.model.defaults')

View file

@ -2,7 +2,7 @@
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2023 Lance Edgar
# Copyright © 2010-2024 Lance Edgar
#
# This file is part of Rattail.
#
@ -27,7 +27,7 @@ Web Menus
from tailbone import menus as base
class TheoMenuHandler(base.MenuHandler):
class TheoMenuHandler(base.TailboneMenuHandler):
"""
Theo menu handler
"""
@ -36,4 +36,4 @@ class TheoMenuHandler(base.MenuHandler):
kwargs['include_worksheets'] = True
return super(TheoMenuHandler, self).make_reports_menu(request, **kwargs)
return super().make_reports_menu(request, **kwargs)