launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #03998
Re: warning: we will soon have much noise in the test results...
On Thu, 29 Jul 2010 09:18:04 -0400, Aaron Bentley <aaron@xxxxxxxxxxxxx> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 07/29/2010 05:37 AM, Abel Deuring wrote:
> > Right. This means that I forgot to include DBItem in the tuple
> > factory.unwrapped_types.
>
> It doesn't seem very good to have a list of types that we don't have to
> proxy. Updating this list is already causing conflicts. Can't we
> determine which objects were supposed to be proxied from the Zope machinery?
from zope.security import checker
dont_wrap = checker.BasicTypes.get(type(ob)) == checker.NoProxy
is a start.
Cheers,
mwh
References