From c67494a18cddfd49265d88b78158f61a5a10e750 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 14 Jul 2024 11:37:36 -0500 Subject: [PATCH] fix: update menu config per wuttaweb --- rattail_demo/config.py | 4 +++- rattail_demo/web/menus.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/rattail_demo/config.py b/rattail_demo/config.py index f44a182..845fad2 100644 --- a/rattail_demo/config.py +++ b/rattail_demo/config.py @@ -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') diff --git a/rattail_demo/web/menus.py b/rattail_demo/web/menus.py index 9468903..9dcf5fa 100644 --- a/rattail_demo/web/menus.py +++ b/rattail_demo/web/menus.py @@ -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 """