-----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          [EMAIL PROTECTED]
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-----

_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to