It's a Python homework, not web2py issue.
On Sep 4, 5:48 pm, Frank <thethinkbo...@gmail.com> wrote: > hi, > > I have code, > response.menu_index = [ > > [TAG[''](IMG(_src=URL(request.application,'static','home.png'),'title'), > False, > URL(request.application,'default','facepda'), > [ > [T('login'), False, > URL(request.application,'default','user/login')], > [T('retrieve password'), False, > URL(request.application,'default','user/retrieve_password')]] > ], > ] > > and get this error, > > Traceback (most recent call last): > File "C:\web2py\gluon\restricted.py", line 184, in restricted > ccode = compile2(code,layer) > File "C:\web2py\gluon\restricted.py", line 171, in compile2 > return compile(code.rstrip().replace('\r\n','\n')+'\n', layer, 'exec') > File "C:/web2py/applications/www/models/menu.py", line 59 > ], > ^ > SyntaxError: invalid syntax > > it will be great if somebody advise me to figure out the problem. > > thanks, > > Frank