[Zope3-dev] TALES PathExpr doesn't call old style classes

Philipp von Weitershausen philipp at weitershausen.de
Tue May 23 12:29:10 EDT 2006


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



More information about the Zope3-dev mailing list