[ZPT] TALES namespace names cannot contain '-'

Steve Alexander steve at canonical.com
Thu Sep 1 05:13:57 EDT 2005


Hi,

I've sent a similar email to this one to the zope3-dev list.


I recently wanted to make a TALES namespace called 'enum-value' for use
in Launchpad development.

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.

Any objections to this?

Are there any other characters that should be included?

Do any specifications need changing?

-- 
Steve Alexander



More information about the ZPT mailing list