[web2py] Re: Menu based on Boolean table fields.

2011-03-23 Thread annet
Hi Denes, Thanks for your reply and explanation, problem solved. In the controller I have: session.row=db(db.cardfunction.company_id==session.id).select(db.cardfunction.ALL).first() ... so in the view I needed: {{if session.row[_name.lower()]:}} Kind regards, Annet.

[web2py] Re: Menu based on Boolean table fields.

2011-03-22 Thread DenesL
Hi Annet, On Mar 22, 10:08 am, annet wrote: > Thanks for your reply. I had a look at the code, but I am afraid it > doesn't solve my problem. The functions are fields in a table and > depending on their value being true or false they should be rendered > as an or element. > > Given this code in

[web2py] Re: Menu based on Boolean table fields.

2011-03-22 Thread annet
Thanks for your reply. I had a look at the code, but I am afraid it doesn't solve my problem. The functions are fields in a table and depending on their value being true or false they should be rendered as an or element. Given this code in a function: session.id=auth.user.bedrijf_id session.row