[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/ replace a couple of removeAllProxies() calls with removeSecurityProxy()

Stephan Richter stephan.richter at tufts.edu
Wed Aug 25 16:38:37 EDT 2004


On Wednesday 25 August 2004 15:49, Fred L. Drake, Jr. wrote:
> -        obj = removeAllProxies(obj)
> +        # isinstance() doesn't work with proxies, so remove if present
> +        obj = removeSecurityProxy(obj)
>          self.failUnless(isinstance(obj, ExampleClass))

Fred,

you can use zapi.isinstance for these cases.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-Checkins mailing list