missing a parenthesis .... (SPAN('Services', _class='highlighted'), False, URL('services'*)*, [
Il giorno giovedì 19 settembre 2013 01:19:34 UTC+2, HittingSmoke ha scritto: > > I'm trying to set up my basic layout before development of my first real > app after tinkering around with web2py for quite a while. I'm basing the > first version on the welcome scaffolding but I'm getting an error when > trying to edit the menu. > > Here is my menu code: > > response.menu = [ > (T('Home'), False, URL('default', 'index'), []), > (T('About'), False, URL('default', 'about'), []), > (SPAN('Services', _class='highlighted'), False, URL('services', [ > (T('Forum'), False, URL('services', 'forum')), > (T('Blog'), False, URL('services', 'blog')), > (T('News'), False, URL('services', 'cms')), > (T('Wiki'), False, URL('services', 'wiki')), > (T('Other'), False, URL('services', 'other')), > ] > )) > ] > > I'm getting the the error: > <type 'exceptions.SyntaxError'> when calling URL, function or function > name required > > Traceback > > 1. > 2. > 3. > 4. > 5. > 6. > 7. > 8. > 9. > > Traceback (most recent call last): > File "/home/hittingsmoke/web2py/gluon/restricted.py", line 217, in > restricted > exec ccode in environment > File > "/home/hittingsmoke/web2py/applications/Community_Deployment/models/menu.py" > <https://communitydeployment.com/admin/edit/Community_Deployment/models/menu.py>, > line 34, in <module> > (T('Other'), False, URL('services', 'other')), > File "/home/hittingsmoke/web2py/gluon/html.py", line 280, in URL > 'when calling URL, function or function name required') > Syntax > > > > Line 34 is the wiki menu entry. > -- 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.