[Zope-dev] Re: ZCatalog getObject broken
Dieter Maurer
dieter at handshake.de
Sat Mar 12 13:22:06 EST 2005
Max M wrote at 2005-3-11 19:10 +0100:
> ...
>A single method might be public, but the rest of the object is hidden.
>
>What to do then? Just ignore the public method and use the objects
>overall visibility?
The object has a "ObjectPermission" that controls handling references (!)
to the object (itself) in TTW code.
TTW code should not get a reference to an object when it does
not have the "ObjectPermission" on it.
Therefore, "getObject" tries hard to return "None" instead of the
object in these cases.
--
Dieter
More information about the Zope-Dev
mailing list