Replace:
response.menu = cache.ram('menu', lambda:build_menu(), None) # to cache it!
with
submenu = cache.ram('menu', lambda:build_menu(), None) # to cache it!
response.menu =[('Main', False, URL('default', 'index'), submenu]
On Monday, 14 August 2017 02:50:09 UTC-5, Вячеслав Анатольевич wrote:
>
> Hi Massimo! Thanks so much! It Works! But it generate menu in inline, like
> this:
>
> menu1 menu1 menu1
>
> In menu1-menu2 in menu2-mnm_name (thats all right) But how menu1 insert in
>
> response.menu =[
> ('Main', False, URL('default', 'index'), [here]]
>
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.