The syntax of both these lines looks a little suspect (counting
brackets, anyway).
Maybe you could add a word or two about using TAG this way, too?
Traceback (most recent call last):
File "/home/thadeusb/Applications/web2py/gluon/restricted.py", line 178, in restricted
exec ccode in environment
File "/home/thadeusb/Applications/web2py/applications/init/models/menu.py", line 49, in <module>
[TAG[''](IMG('Overview', _src=URL(r=request, c='static', f='images/overview.png'))), False, URL(request.application, 'default', 'index')],
File "/home/thadeusb/Applications/web2py/gluon/html.py", line 307, in __init__
% self.tag
SyntaxError: <img/> tags cannot have components
Traceback (most recent call last):
File "/home/thadeusb/Applications/web2py/gluon/restricted.py", line 176, in restricted
ccode = compile(code.replace('\r\n', '\n'), layer, 'exec')
File "/home/thadeusb/Applications/web2py/applications/init/models/menu.py", line 50
[TAG[''](IMG(_src=URL(r=request, c='static', f='images/overview.png'),'Overview')), False, URL(request.application,'default','index')],
SyntaxError: non-keyword arg after keyword arg