[ZPT] Re: TALES namespace names cannot contain '-'
Evan Simpson
evan at 4-am.com
Thu Sep 1 23:57:52 EDT 2005
Stephan Richter wrote:
> On Thursday 01 September 2005 05:10, Steve Alexander wrote:
>
>>I propose to extend this to allow the '-' character too.
>>Any objections to this?
>
>
> nope.
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))
Cheers,
Evan @ 4-am
More information about the ZPT
mailing list