The second argument does not mean enabled/disabled. It means 
active/inactive. For instance, if you are visiting the page this menu item 
leads to you might want to change the CSS style of that menu item. To help 
you do this, MENU by default adds "web2py-menu-active" when that second 
argument evaluates to True.

Of course, you can also use this to disable items if you want.

Segunda-feira, 18 de Novembro de 2013 0:17:00 UTC, Scott Hunter escreveu:
>
> As I understand it, the second argument in a menu item (which does not 
> seem to be documented in the book) indicates if the item is disabled (True) 
> or not (False).  In fact, in the menu generated by the app wizard, this 
> argument is given an expression comparing the same URL() as used for the 
> menu item to URL().
>
> But even if I stuff a True in this argument, the correspond menu item is 
> still enabled.
>
> Am I misunderstanding how this works, or what it should do, or is there a 
> bug?
>
> (version 2.7.4, OSX 10.9)
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to