fix: update menu config per wuttaweb
This commit is contained in:
parent
e10b1fa2fd
commit
c67494a18c
|
@ -19,9 +19,11 @@ class DemoConfigExtension(ConfigExtension):
|
||||||
# tell rattail where our stuff lives
|
# tell rattail where our stuff lives
|
||||||
config.setdefault('rattail', 'model_spec', 'rattail_demo.db.model')
|
config.setdefault('rattail', 'model_spec', 'rattail_demo.db.model')
|
||||||
config.setdefault('rattail.trainwreck', 'model', 'rattail.trainwreck.db.model.defaults')
|
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')
|
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
|
# default app handlers
|
||||||
config.setdefault('rattail', 'products.handler', 'rattail_corepos.products:CoreProductsHandler')
|
config.setdefault('rattail', 'products.handler', 'rattail_corepos.products:CoreProductsHandler')
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ from tailbone import menus as base
|
||||||
from tailbone_corepos.menus import make_corepos_menu
|
from tailbone_corepos.menus import make_corepos_menu
|
||||||
|
|
||||||
|
|
||||||
class DemoMenuHandler(base.MenuHandler):
|
class DemoMenuHandler(base.TailboneMenuHandler):
|
||||||
"""
|
"""
|
||||||
Demo menu handler
|
Demo menu handler
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue