27 lines
595 B
Python
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
|