fix: update menu config per wuttaweb

This commit is contained in:
Lance Edgar 2024-07-14 11:37:36 -05:00
parent e10b1fa2fd
commit c67494a18c
2 changed files with 4 additions and 2 deletions

View file

@ -19,9 +19,11 @@ class DemoConfigExtension(ConfigExtension):
# tell rattail where our stuff lives
config.setdefault('rattail', 'model_spec', 'rattail_demo.db.model')
config.setdefault('rattail.trainwreck', 'model', 'rattail.trainwreck.db.model.defaults')
config.setdefault('tailbone.menus', 'handler', 'rattail_demo.web.menus:DemoMenuHandler')
config.setdefault('tailbone.static_libcache.module', 'rattail_demo.web.static')
# menus
config.setdefault('rattail.web.menus.handler_spec', 'rattail_demo.web.menus:DemoMenuHandler')
# default app handlers
config.setdefault('rattail', 'products.handler', 'rattail_corepos.products:CoreProductsHandler')

View file

@ -7,7 +7,7 @@ from tailbone import menus as base
from tailbone_corepos.menus import make_corepos_menu
class DemoMenuHandler(base.MenuHandler):
class DemoMenuHandler(base.TailboneMenuHandler):
"""
Demo menu handler
"""