[Zope] setting default security permissions

Tom Cameron tom@mooball.com
Sat, 6 Apr 2002 14:43:43 +1000


I am building a python product. I am having trouble getting default security
permissions to set.
I am able to declare the permission properly, but the defaults dont work.

I try the line
    security = ClassSecurityInfo()
    security.setPermissionDefault('View User Home',
                      ['Anonymous','Authenticated'])
    security.declareProtected('View User Home', 'home')

The 'declareProtected' works, but the 'setPermissionDefault' has no effect
on anything.

I have no idea what else I need to be doing.

Tom