fix: update model, menu config per wuttaweb
This commit is contained in:
parent
3b3b358879
commit
f65746e9b2
|
@ -2,7 +2,7 @@
|
|||
######################################################################
|
||||
#
|
||||
# Messkit -- Generic-ish Data Utility App
|
||||
# Copyright © 2022-2023 Lance Edgar
|
||||
# Copyright © 2022-2024 Lance Edgar
|
||||
#
|
||||
# This file is part of Messkit.
|
||||
#
|
||||
|
@ -42,6 +42,10 @@ class MesskitConfig(ConfigExtension):
|
|||
config.setdefault('rattail', 'app_title', "Messkit")
|
||||
config.setdefault('rattail', 'app_class_prefix', 'Messkit')
|
||||
config.setdefault('rattail', 'app_table_prefix', 'messkit')
|
||||
config.setdefault('tailbone.menus', 'handler', 'messkit.web.menus:MesskitMenuHandler')
|
||||
config.setdefault('rattail', 'enum', 'messkit.enum')
|
||||
config.setdefault('rattail', 'model', 'messkit.db.model')
|
||||
|
||||
# model
|
||||
config.setdefault('rattail.model_spec', 'messkit.db.model')
|
||||
|
||||
# menus
|
||||
config.setdefault('rattail.web.menus.handler_spec', 'messkit.web.menus:MesskitMenuHandler')
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
######################################################################
|
||||
#
|
||||
# Messkit -- Generic-ish Data Utility App
|
||||
# Copyright © 2022-2023 Lance Edgar
|
||||
# Copyright © 2022-2024 Lance Edgar
|
||||
#
|
||||
# This file is part of Messkit.
|
||||
#
|
||||
|
@ -27,7 +27,7 @@ Web Menus
|
|||
from tailbone import menus as base
|
||||
|
||||
|
||||
class MesskitMenuHandler(base.MenuHandler):
|
||||
class MesskitMenuHandler(base.TailboneMenuHandler):
|
||||
"""
|
||||
Messkit menu handler
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue