fix: update menu config per wuttaweb
This commit is contained in:
parent
a13747582a
commit
2fda18c6cc
|
@ -38,9 +38,11 @@ class TheoConfig(ConfigExtension):
|
||||||
# this is the "Theo" app
|
# this is the "Theo" app
|
||||||
config.setdefault('rattail', 'app_title', "Theo")
|
config.setdefault('rattail', 'app_title', "Theo")
|
||||||
config.setdefault('rattail', 'app_package', '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')
|
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
|
# Trainwreck model is same regardless of POS
|
||||||
config.setdefault('rattail.trainwreck', 'model', 'rattail.trainwreck.db.model.defaults')
|
config.setdefault('rattail.trainwreck', 'model', 'rattail.trainwreck.db.model.defaults')
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# Rattail -- Retail Software Framework
|
# Rattail -- Retail Software Framework
|
||||||
# Copyright © 2010-2023 Lance Edgar
|
# Copyright © 2010-2024 Lance Edgar
|
||||||
#
|
#
|
||||||
# This file is part of Rattail.
|
# This file is part of Rattail.
|
||||||
#
|
#
|
||||||
|
@ -27,7 +27,7 @@ Web Menus
|
||||||
from tailbone import menus as base
|
from tailbone import menus as base
|
||||||
|
|
||||||
|
|
||||||
class TheoMenuHandler(base.MenuHandler):
|
class TheoMenuHandler(base.TailboneMenuHandler):
|
||||||
"""
|
"""
|
||||||
Theo menu handler
|
Theo menu handler
|
||||||
"""
|
"""
|
||||||
|
@ -36,4 +36,4 @@ class TheoMenuHandler(base.MenuHandler):
|
||||||
|
|
||||||
kwargs['include_worksheets'] = True
|
kwargs['include_worksheets'] = True
|
||||||
|
|
||||||
return super(TheoMenuHandler, self).make_reports_menu(request, **kwargs)
|
return super().make_reports_menu(request, **kwargs)
|
||||||
|
|
Loading…
Reference in a new issue