[Zope3-Users] Security proxies when dealing with objects as dictionary keys?

Benji York benji at zope.com
Tue Sep 20 11:37:53 EDT 2005


Alec Munro wrote:
> I have a situation where I would like to use objects as dictionary
> keys. These objects are normally security proxied, so I assume
> removeSecurityProxy is required? 

If you make security declarations such that the proxied objects are 
usable then it should work without removing the security proxy.  Without 
trying it, making __eq__ and __hash__ accessible should do the trick.
-- 
Benji York
Senior Software Engineer
Zope Corporation


More information about the Zope3-users mailing list