This restriction was not introduced for security reason, but to simplify the implementation of the new pending shared template registry which fix the UserWarning of unassociated templates.
I don't remember precisely why we did that, and maybe it is now unnecessary for the latest implementation of the shared template registry that lives in a branch. I can't tell.
In the meantime, instead of grok.template on the view, you can use:
template = grok.PageTemplateFile("templates/errors/generic.pt")
This restriction was not introduced for security reason, but to simplify the implementation of the new pending shared template registry which fix the UserWarning of unassociated templates.
I don't remember precisely why we did that, and maybe it is now unnecessary for the latest implementation of the shared template registry that lives in a branch. I can't tell.
In the meantime, instead of grok.template on the view, you can use: teFile( "templates/ errors/ generic. pt")
template = grok.PageTempla