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

Richard Mitchell 1002242 at bugs.launchpad.net
Fri Oct 5 13:45:50 UTC 2012


Hi Ian,

This was broken in previous versions of Zope. The documentation at
http://wiki.zope.org/ZPT/TALESSpecification13 and indeed the comments in
the code clearly show that string expressions should not contain any
subexpressions, other than simple paths.

The wiki page you point to does show the correct syntax. The issue here
is that one cannot use a "string:" subexpression within a string.

${context/absolute_url} is fine.
${context/absolute_url|string:foo} is not.

I hope this clears up any confusion.

-- 
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