In one of my views I have:

{{=A('Gymnasium',_href=URL(r=request,f='index'))}}


When I replace the 'Gymnasium' string with {{=response.companyname}}:

{{=A('{{=response.companyname}}',_href=URL(r=request,f='index'))}}


an error ticket is issued:

Traceback (most recent call last):
  File "/Library/Python/2.5/site-packages/web2py_1_63_5/gluon/
restricted.py", line 105, in restricted
    ccode = compile(code.replace('\r\n', '\n'), layer, 'exec')
  File "/Library/Python/2.5/site-packages/web2py_1_63_5/applications/
demo/views/site/index.html", line 46
    response.write(A('{{=response.companyname)\nresponse.write
('\',_href=URL(r=request,f=\'index\'))}}\n          </div> <!-- logo --
>\n          <div id="navigation">\n            ',escape=False)

^
SyntaxError: unexpected character after line continuation character


What is the correct syntax?


Kind regards,

Annet.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to