info.html:
--------------- cut ---------------------
{{extend 'layout.html'}}


<table  class="infotext">
  <tr>
    <td><h2>{{=title}}
{{    if auth.user_id==1:
        =A("(m)",_href=szerkeszt)
      pass}}</h2>

{{    =XML(szoveg)}}
{{    if auth.user_id==1:
        =A("(m)",_href=szerkeszt)
      pass}}
    </td>
  </tr>
</table>
------------- cut --------------------

Error:

Traceback (most recent call last):
  File "/srv/www/web2py/gluon/restricted.py", line 176, in restricted
    ccode = compile2(code,layer)
  File "/srv/www/web2py/gluon/restricted.py", line 163, in compile2
    return compile(code.rstrip().replace('\r\n','\n')+'\n', layer,
'exec')
  File "/srv/www/web2py/applications/oregpreshaz/views/default/
info.html", line 123
    =A("(m)",_href=szerkeszt)
    ^
SyntaxError: invalid syntax
------------------ cut ---------------------

119 response.write('\n\n\n<table  class="infotext">\n  <tr>\n
<td><h2>', escape=False)
120 response.write(title)
121 response.write('\n', escape=False)
122 if auth.user_id==1:
123     =A("(m)",_href=szerkeszt)
124     pass
125 response.write('</h2>\n  \n', escape=False)
126 response.write(XML(szoveg))
127 response.write('\n', escape=False)



On máj. 17, 06:35, mdipierro <[email protected]> wrote:
> We found some problems in 1.78.1 and errors in views will not display
> correctly in tickets thus causing problems. We have a temporary fix in
> 1.78.2 but it will still not correctly report correctly report errors
> in the new {{block}} feature. We are working on this....
>
> Please report any error view asap. try insert bugs in view and check
> if they are reported properly.
>
> Massimo

Reply via email to