I guess it can be added as methods of the MENU class.
It needs some thought and has to be backward compatible so
{{=MENU(response.menu)}} has to work if response.menu follows the old
syntax and
response.menu=MENU()
response.menu.add_item(....)
response.menu.add_cascade(....)
etc.
can also be implemented as methods of the MENU class.
Massimo
On May 20, 9:40 am, Timmie <[email protected]> wrote:
> Hello,
> I tried to configure a menu with your help yesterday.
> It was possible.
>
> But with the current nested lists, one can easily confuse and get a
> lot of syntax errors with "[" and "]"
>
> What about a more dictionary data structure?
>
> Or someting like:
> mymenu = MENU()
>
> then:
> mymenu.add_topmenu('title', URL, 'parent_item')
> mymenu.add_submenu('title', URL, 'parent_item')
>
> I am more doing a barin storming here. You may have other plans
> yourself.
>
> Kind regards,
> Timmie
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---