[Zope] Why no protection for PageTemplateFile?!

Dirksen dirksen_lau@yahoo.com
Wed, 23 Jan 2002 04:07:41 -0800 (PST)


Hi,

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).

The same code works in a Zope 2.3 server. Is it a bug?

Cheers
Dirksen

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/