[Zope] security.declarePrivate allows access to all authenticated users

Dieter Maurer dieter@handshake.de
Wed, 29 Aug 2001 22:59:20 +0200 (CEST)


Itai Tavor writes:
 > I got the following class:
 > 
 > from AccessControl import ClassSecurityInfo
 > from Products.ZPatterns.Specialists import Specialist
 > import Globals
 > 
 > class MyClass(Specialist):
 > 
 >      security = ClassSecurityInfo()
 > 
 >      security.declarePrivate('test')
 >      def test(self):
 >          return 'test'
 > 
 > Globals.InitializeClass(MyClass)
At least, this is not the normal behaviour.

   I have been unable to reproduce this (Zope 2.4CVS).


Dieter