[web2py] Re: Issues with python in the menu.py

2011-04-03 Thread ron_m
Hi Jason

This line
response.menu += [(T('My Conferences'), False, 
URL('default','my_conferences'), [
users_conferences_list
])]
I think should be
response.menu += [(T('My Conferences'), False, 
URL('default','my_conferences'), 
users_conferences_list
)]

users_conferences is already a list, wrapping it in [] makes a one element 
list containing the users_conferences list which is not what menu expects.

Ron


Re: [web2py] Re: Issues with python in the menu.py

2011-04-03 Thread Jason Brower

On 04/03/2011 06:26 PM, ron_m wrote:

Hi Jason

This line
response.menu += [(T('My Conferences'), False, 
URL('default','my_conferences'), [

users_conferences_list
])]
I think should be
response.menu += [(T('My Conferences'), False, 
URL('default','my_conferences'),

users_conferences_list
)]

users_conferences is already a list, wrapping it in [] makes a one 
element list containing the users_conferences list which is not what 
menu expects.


Ron

Too many, brackets... feels like lisp!!!
Thanks, that didn't.
Once again, it was just a little python hickup from me. :D Your solution 
did the trick.

---
Best Regards,
Jason Brower