On Mar 10, 2011, at 7:47 AM, Ross Peoples wrote:
> I just updated to the latest trunk and I am now having problems view errors
> in my application, as clicking on a ticket creates another ticket, but in the
> admin application this time. I opened the latest error in the
> applications/admin/errors folder, and this is the contents of the latest
> error:
Here's a workaround (Massimo, this is an effect of the template patch; don't
release until we fix it one way or the other):
In applications/admin/views/default/ticket.html find lines 85-86:
<pre>{{=CODE('\n'.join([x[1] for x in sorted(frame['lines'].items(),key=lambda
x: x[0])]),
language='python', link=None, counter=min(frame['lines'].keys()),
highlight_line=frame['lnum'])}}</pre>
...and escape the newline at the end of line 85, thus:
<pre>{{=CODE('\n'.join([x[1] for x in sorted(frame['lines'].items(),key=lambda
x: x[0])]), \
language='python', link=None, counter=min(frame['lines'].keys()),
highlight_line=frame['lnum'])}}</pre>