[Zope] Python script/security help

Evan Simpson evan@4-am.com
Wed, 05 Dec 2001 11:18:40 -0500


Keith Alperin wrote:

> 	security = ClassSecurityInfo()
> security.declarePublic('getValue')
> def getValue(self):
> """returns the value of this property"""
> return self.value

If you haven't already, read 
http://dev.zope.org/Wikis/DevSite/Projects/DeclarativeSecurity/ZopeSecurityForDevelopers, 
in particular the example right before the paragraph that starts with:

    "Note the last line in the example. In order for security assertions to 
be correctly applied to your class, you must call the global class 
initializer for all classes that have security information."

Hopefully this will solve your problem.

Cheers,

Evan @ Zope