Undocumented "?" usage in path expression

Bug #583343 reported by Jonathan Ballet on 2010-05-20
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zope.tales
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 Edit Tag help
Tres Seaver (tseaver) on 2010-05-20
Changed in zope.tales:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers