[Zope] Making __getattr__ accessible

Chris McDonough chrism@zope.com
Tue, 16 Jul 2002 18:08:31 -0400


Hi Dave,

do something like:

__guarded_getattr__ = __getattr__

... in your class...

----- Original Message -----
From: "Dave Brueck" <dbrueck@xlontech.com>
To: <zope@zope.org>
Sent: Tuesday, July 16, 2002 5:57 PM
Subject: [Zope] Making __getattr__ accessible


> Hi,
>
> I have an External Method that returns an instance of a class that
> implements its own __getattr__ method, but Python scripts inside
Zope
> can't seem to access it (I get an 'Unauthorized' exception).
>
> I've tried adding a ClassSecurityInfo instance to declare
__getattr__
> public, and I've also tried deriving the class from
> Acquisition.Implicit, but Zope still doesn't like it. Any ideas?
>
> Thanks in advance,
> Dave
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>