25 Jan
2002
25 Jan
'02
9:23 p.m.
Dirksen writes:
Here's my class
class Dummy: .... __roles__ = ['Authenticated', 'Owner', 'Manager'] p_view = PageTemplateFile('F:/zope2/lib/.../view.zpt', globals()) d_view = HTMLFile('F:/zope2/lib/.../view.html', globals()) ....
Globals.InitializeClass(Dummy)
I think I've shut off anonymous access to p_view and d_view. But to my surprise, p_view goes unchecked on Zope 2.5.0b4, no authentication at all! (visiting d_view pops up the authentication box). "PageTemplateFile" comes with its own security declaration.
Probably, this overrides the on in the parent. Dieter