Re: TALES namespace names cannot contain '-'
Steve Alexander <[email protected]> Fri, 02 Sep 2005 10:13:26 +0300
| Newsgroups | gmane.comp.web.zope.page-templates,gmane.comp.web.zope.zope3 |
|---|---|
| Message-ID | <[email protected]> |
> 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