error_log template on Zope2 causes chameleon.exc.ExpressionError: invalid syntax
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Chamelon ZPT |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Trying to view the 'error_log' object on Zope2 (tested on Zope 2.12) results in the error (full traceback at the end):
- Warning: Compilation failed
- Warning: chameleon.
- String: "len(value) < 70 and value or value[:70] + '...'"
- Filename: manage_main
- Location: (88:27)
It's not obvious why the template in question is broken. The lines concerned by the error have this text
<span tal:define="value entry/value"
tal:
Which seem properly escaped.
A test for this error has been committed to the five.pt SVN repo.
The full traceback is:
Traceback (most recent call last):
[...]
File "Zope2-
return self._bindAndEx
File "Zope2-
return self._exec(
File "Zope2-
return self.pt_
File "Zope2-
showtal=
File "zope.pagetempl
raise PTRuntimeError(
- Warning: Compilation failed
- Warning: chameleon.
- String: "len(value) < 70 and value or value[:70] + '...'"
- Filename: manage_main
- Location: (88:27)
PTRuntimeError: ['Compilation failed', u'chameleon.
sourcecodegen pinned to at least 0.6.14. This fixes the issue