cookiecutter-wuttaweb/{{ cookiecutter.repo_name }}/{{ cookiecutter.package_name }}/web/menus.py
Lance Edgar 46b33a622f initial template for app based on wuttaweb
with e.g. `poser install` command
2024-11-26 11:16:09 -06:00

27 lines
595 B
Python

# -*- coding: utf-8; -*-
"""
{{cookiecutter.project_name}} Menu
"""
from wuttaweb import menus as base
class {{cookiecutter.__studly_prefix}}MenuHandler(base.MenuHandler):
"""
{{cookiecutter.project_name}} menu handler
"""
def make_menus(self, request, **kwargs):
# TODO: override this if you need custom menus...
# menus = [
# self.make_products_menu(request),
# self.make_admin_menu(request),
# ]
# ...but for now this uses default menus
menus = super().make_menus(request, **kwargs)
return menus