----- Original Message ----- From: "Brian Brinegar" <[EMAIL PROTECTED]>
To: <zope@zope.org>
Sent: Wednesday, May 09, 2007 4:24 PM
Subject: [Zope] method call pre-attribute access


I've got product where it would be very beneficial to me if I could have
a method called prior to any attribute access. For example:

 thing.foo
 thing.getProperty('foo')

Either of these should trigger a call to a method which could allow or
deny access to the attribute.

Create a new object class (subclassing some other standard object class if you like), then create a getProperty method in the new object class which does your security checking prior to allowing access to the attribute.


Jonathan

_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to