Undocumented "?" usage in path expression

Bug #583343 reported by Jonathan Ballet
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zope.tales
Invalid
Undecided
Unassigned

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
Revision history for this message
Benji York (benji) wrote :
Tres Seaver (tseaver)
Changed in zope.tales:
status: New → Confirmed
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.