[ZPT] Re: TALES namespace names cannot contain '-'
Steve Alexander
steve at canonical.com
Fri Sep 2 03:13:26 EDT 2005
> Yes, unless Zope 3 TALES is very unlike Zope 2 TALES. We deliberately
> restricted the syntax of namespaces to be valid variable names in Python
> (and most other languages). This allowed, for example, direct use of
> the name of a namespace as a function in a Python expression:
>
> python:x and path('%s/%s' (base, x))
I don't understand this example.
I see that there's meant to be a '%' operator in there.
But, I don't understand what "use of the name of a namespace as a
function in a Python expression" means, and I see only the function
'path' above.
--
Steve Alexander
More information about the ZPT
mailing list