[ZPT] Are PageTemplateFiles restricted code?
Evan Simpson
evan@zope.com
Thu, 28 Feb 2002 12:33:38 -0500
Michael R. Bernstein wrote:
> It seems that a PageTemplateFile in a class cannot access simple class
> attributes when the class has it's default access policy set to 'deny'.
Yes, PageTemplateFiles are fully restricted. This is based partly on
the idea that presentation code shouldn't need special access, and
partly to facilitate 'skinning' (move the code into a ZopePageTemplate,
and it should still work). It is inconsistent with DTMLFile.
Cheers,
Evan @ Zope