Re: TALES namespace names cannot contain '-'
Evan Simpson <[email protected]> Thu, 01 Sep 2005 22:57:52 -0500
| Newsgroups | gmane.comp.web.zope.page-templates,gmane.comp.web.zope.zope3 |
|---|---|
| Organization | 4AM Productions, Inc. |
| Message-ID | <[email protected]> |
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