[Grok-dev] grok.templatedir path restriction

Wichert Akkerman wichert at wiggy.net
Tue Apr 13 08:57:28 EDT 2010

I just filed this bug as https://bugs.launchpad.net/grok/+bug/562262 :

I want to organize my templates by type, but all in a single templates 
subdirectory. That means the paths to the templates relative to the 
python source look like templates/category/template.pt. Unfortunately 
the grok.templatedir directive does not allow this: it prevents any 
occurrence of os.path.sep in the pathname.

I can not think of a good reason for that restriction. It does not help 
with security since the person writing that directive can already write 
python code to do anything.

Are there any objections to simply removing that test?


More information about the Grok-dev mailing list