could tuning the CSS (see web2py-menu-active) help ?
On Sat, May 19, 2012 at 1:22 PM, François Delpierre < [email protected]> wrote: > Hi, > > Here is my solution : > If my response.menu is somthing like : > > response.menu = [('Menu1', False), ('Menu2', True), ('Menu3', False)] > > I can use this in my view to display the active menu : > {{=[x[0] for x in response.menu if x[1]==True][0]}} > > > It's working well, but is there no better and more efficient way ? > > Thanks, > -- Sebastian E. Ovide

