[zope2-tracker] [Bug 1002242] Re: TALES: Non-simple path expressions may be evaluated in a string expression

Ian Livingstone contactme at ianlivingstone.me.uk
Fri Oct 5 12:24:52 UTC 2012


I've just installed the fixed version of zope.tales 3.5.2 from
(http://pypi.python.org/pypi/zope.tales) but I still get a 'Compilation
Failed' error when attempting to save the following :

<p tal:content="string:this template (${container/getId}) should compile
even though this next expression is ${here/erroneous |
string:correct}"/>

To get the template to compile I would have to change that to read :

<p tal:define="c1 container/getId; c2 here/erroneous | string:correct;"
tal:content="string:this template :($c1) should compile even though this
next expression is $c2"/>

However, I would really love to not have to go through ALL of my
templates to rewrite these tales definitions and expressions so if
anyone has found a fix to this problem (and can explain how to implement
it) that would be amazing!

-- 
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.
https://bugs.launchpad.net/bugs/1002242

Title:
  TALES: Non-simple path expressions may be evaluated in a string
  expression

To manage notifications about this bug go to:
https://bugs.launchpad.net/zope.tales/+bug/1002242/+subscriptions


More information about the zope2-tracker mailing list