Stephan Richter wrote:
> On Tuesday 23 May 2006 11:02, Philipp von Weitershausen wrote:
>> Would callable(removeAllProxies(obj)) be harmful in any way if you
>> end up calling the proxied obj() anyway?
>
> No, we do this for zapi.isinstance as well.

Well, yeah, zapi.isinstance really is from
zope.security.proxy.isinstance. This means it only strips security
proxies. (Which is, btw, why I prefer direct imports and dislike zapi
nowadays: it doesn't make clear what a particular API the function comes
from).
I would be removing ALL proxies (because that's what it takes to make
callable()'s result accurate).
Philipp
_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com