Evan, that document told me everything I needed to know. Thank you for pointing it out. My problem was that my Property class did not inherit from Acquisition.Implicit, thus rendering the security infrastructure unusable. Thanks again! Keith -----Original Message----- From: Evan Simpson [mailto:evan@4-am.com] Sent: Wednesday, December 05, 2001 10:19 AM To: Keith Alperin Cc: zope@zope.org Subject: Re: [Zope] Python script/security help 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/ZopeSecur ityForDevelopers, 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
participants (1)
-
Keith Alperin