[Zope] Re: calling getOwner on an ExtFile instance raises an Unauthorized ex ception

Tres Seaver tseaver at palladion.com
Wed Feb 15 10:46:14 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Palermo, Tom wrote:
> All,
>  
> Does anyone know why calling getOwner() on an instance of ExtFile raises an
> unauthorized exception?
>     Error Type: Unauthorized    
>     Error Value: You are not allowed to access 'getOwner' in this context
> 
> ExtFile imports SimpleItem which, in turn, imports AccessControl.Owner
>  
> Here's the code from ExtFile:
> from OFS.SimpleItem import SimpleItem
>  
> Here's the code from SimpleItem:
> import AccessControl.Role, AccessControl.Owned, App.Common
>  
> I've got some other custom objects in my application which import SimpleItem
> and I am able to call getOwner() on them no problem.

TUrn on verbose security in your zope.conf and retry;  you should get a
lot more information about why the security machinery is blocking access
in the error log.


Tres.
- --
===================================================================
Tres Seaver          +1 202-558-7113          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFD80zG+gerLs4ltQ4RAh1HAKCedCG/jVjr+eBtsS++kwdrs18nYwCfXEGq
/CQ06fqfosuMDtt0u9NXwtA=
=68is
-----END PGP SIGNATURE-----



More information about the Zope mailing list