[Zope3-dev] TALES namespace names cannot contain '-'

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Sep 1 09:03:01 EDT 2005


On Thursday 01 September 2005 05:10, Steve Alexander wrote:
> I found that this didn't work, because only the characters [a-zA-Z0-9_]
> are allowed.  You can find the regex on line 27 of
> zope/tales/expressions.py.
>
>   namespace_re = re.compile('(\w+):(.+)')
>
>
> I propose to extend this to allow the '-' character too.

+1

> Any objections to this?

nope.

> Are there any other characters that should be included?

probably, but let's be conservative about it. We effectively could allow 
anything that is allowed in a regular URL path segment minux ":". 

> Do any specifications need changing?

I don't think so. If the directory the code is in has any TXT files you might 
want to read through them making sure that the characters are not mentioned 
anywhere.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-dev mailing list