[Zope3-dev] ? vs $
Jim Fulton
jim@zope.com
Fri, 14 Jun 2002 13:14:55 -0400
Guido van Rossum wrote:
>
> SteveA and I are confused why in a path in TALES you can use ? for
> expansion, but $ elsewhere. E.g. you can write
>
> <td tal:content="context/?jobid/summary">
You can? I thought this undocumented feature was gone.
It *is* undocumented (isn't it?).
The rational for using ? was that ? isn't legal in Zope
names.
I would prefer to treat this as a non-feature. In fact,
I would go so far as to take it out.
If someone really wants this, we ought to think harder about
how to provide it.
>
> I believe that in string expressions you can use $foo to expand a
> variable:
>
> <td tal:content="string:${jobid}">
>
> Why can't we use $jobid in the first example?
Because it's not a string expression.
Jim
--
Jim Fulton mailto:jim@zope.com Python Powered!
CTO (888) 344-4332 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org