Undocumented "?" usage in path expression

Bug #583343 reported by Jonathan Ballet on 2010-05-20
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

While reading http://wiki.zope.org/ZPT/TALESSpecification13 , I saw the third comment of hathawsh for 2003 (!) which highlighted the usage of "?" in path expression.

Basically, the following path expression:

    <span tal:content="here/?myvar" />

will be evaluated as "here/foo" if the value of "myvar" is "foo", and "here/bar" if the value is "bar", etc.

This is so handy, but I can't find any reference to this (there's just a test in zope.tales). I think the specification should be updated accordingly.

Tags: doc Edit Tag help
Tres Seaver (tseaver) on 2010-05-20
Changed in zope.tales:
status: New → Confirmed
Colin Watson (cjwatson) wrote :

The zope.tales project on Launchpad has been archived at the request of the Zope developers (see https://answers.launchpad.net/launchpad/+question/683589 and https://answers.launchpad.net/launchpad/+question/685285). If this bug is still relevant, please refile it at https://github.com/zopefoundation/zope.tales.

Changed in zope.tales:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers