> Now I want to have response.menu populated with the wiki pages too  in 
every page I have, is there a way to populate it calling
> somehow auth.wiki or I have to do that by hand, updating each time 
menu.py? 

If you put this on top of the controller (or model), you get the wiki menu

from gluon.tools import Wiki
response.menu += Wiki(auth).menu(controller="default", function="wiki")

The controller and / or function is required since otherwise, the wiki 
object cannot resolve redirection to edit/search/etc., and that address 
should be an action that calls auth.wiki(). And also you must check the 
action name to avoid duplicating the sub-menu

What about an extra set of keyword arguments to activate the menu?:

auth.wiki(resolve=False, menu=True, controller=..., function=....)


-- 



Reply via email to