-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Brian Brinegar wrote:
> 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.
> 
> Any thoughts?
> 

You can define a method, '__allow_access_to_unprotected_subobjects__',
which will be called by the Zope security policy, passing the name and
value being accessed;  if the method returns a true value, then access
is granted.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGQkFe+gerLs4ltQ4RAuTLAJ0eyG7Ww0cdXbMXv/HuxEiRmT0PfACgt2RZ
346CGPQVbWdNFfGxE/nzRAs=
=VWvU
-----END PGP SIGNATURE-----

_______________________________________________
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