Yes the syntax is incorrect.
[TAG[''](IMG('Overview', _src=URL(r=request, c='static',
f='images/overview.png'))), False, URL(request.application, 'default',
'index')],
Provides
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"
<http://127.0.0.1:8000/admin/default/edit/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
And
[TAG[''](IMG(_src=URL(r=request, c='static',
f='images/overview.png'),'Overview')), False,
URL(request.application,'default','index')],
Provides
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"
<http://127.0.0.1:8000/admin/default/edit/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
-Thadeus
On Tue, Sep 15, 2009 at 10:02 AM, Jonathan Lundell <[email protected]>wrote:
> e you could add a word or two about using TAG this wa
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---