hi to all, here's the funny thing : <meta http-equiv="refresh" content="" tal:attributes="content python:'2;/esami/' + context.REQUEST.SESSION['role'] + '/'"> gives a <!-- Page Template Diagnostics Compilation failed TAL.TALDefs.TALError: Python expression error: EOL while scanning single-quoted string (Python expression "'2", line 1) in expression "python:'2", at line 3, column 5 --> if i remove the ; char all is ok (but obviously the meta-http is not working) . is it a bug or a feature ? is it well known ? Regards Samuele
Samuele Giovanni Tonon wrote:
hi to all, here's the funny thing :
<meta http-equiv="refresh" content="" tal:attributes="content python:'2;/esami/' + context.REQUEST.SESSION['role'] + '/'">
gives a <!-- Page Template Diagnostics Compilation failed TAL.TALDefs.TALError: Python expression error: EOL while scanning single-quoted string (Python expression "'2", line 1) in expression "python:'2", at line 3, column 5 -->
if i remove the ; char all is ok (but obviously the meta-http is not working) .
is it a bug or a feature ? is it well known ?
I found this in ZMI > Zope Help > ZPT Reference > attributes: *Note: If you want to include a semi-colon (;) in an expression, it must be escaped by doubling it (;;).* Tonico
On Wed, 2004-05-12 at 13:18, Tonico Strasser wrote:
I found this in ZMI > Zope Help > ZPT Reference > attributes:
*Note: If you want to include a semi-colon (;) in an expression, it must be escaped by doubling it (;;).* ah, i missed it, now it's working.
thanks Samuele
participants (2)
-
Samuele Giovanni Tonon -
Tonico Strasser