>
> yep, this fix the problem but it is something ad-hoc, a general procedure
> would be better.
>
I proposed a change to auth.wiki for enabling the menu with keword
arguments:
http://code.google.com/p/web2py/issues/detail?id=1281
--
yep, this fix the problem but it is something ad-hoc, a general procedure
would be better.
2013/1/16 Andrew W
> I just tried something like this:
>
> if request.function != 'wiki':
>response.menu += Wiki(auth).menu(controller="**default", function=
> "wiki")
>
>
>
> On Wednesday, January 16
I just tried something like this:
if request.function != 'wiki':
response.menu += Wiki(auth).menu(controller="default", function="wiki")
On Wednesday, January 16, 2013 10:07:06 PM UTC+13, Paolo valleri wrote:
>
> Hi Alan, thank for the tip :-), it seems to work correctly.
> The only issue is
Hi Alan, thank for the tip :-), it seems to work correctly.
The only issue is that when I call the function 'wiki' I get two menu, one
from the ad-hoc import, the other one from the common wiki.
What shoud be nice is to explicitly tell auth.wiki when it has to populate
the response.menu and when no
> 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.
5 matches
Mail list logo