[Grok-dev] Rendering a menu built in another module

Simon Elbaz simon.elbaz at free.fr
Thu Jan 8 08:43:41 EST 2009


Hi,
I have 2 files:
menus.py
infos.py

In menus.py, a menu is built using megrok.menu (with fixes on 0.14). A 
view called RenderMenu has 2 methods:
render which display the menu  correctly.
render_menu which returns the menu structure

In the file infos.py, a class called DisplayMenu subclasses RenderMenu 
and returns the menu which is now empty (whatever is put in menus.py).

What should I do to get the menu - filled in menus.py - from DisplayMenu 
in infos.py ?

Thanks for your help
Simon


More information about the Grok-dev mailing list