<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META content="MSHTML 6.00.2800.1528" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=016582715-15022006><FONT size=2>All,</FONT></SPAN></DIV>
<DIV><SPAN class=016582715-15022006><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=016582715-15022006><FONT size=2>Does anyone know why calling
getOwner() on an instance of ExtFile raises an unauthorized
exception?</FONT></SPAN></DIV>
<DIV><SPAN class=016582715-15022006>
<P><FONT size=2><SPAN class=016582715-15022006> </SPAN>Error
Type: Unauthorized<SPAN
class=016582715-15022006> </SPAN><BR><SPAN
class=016582715-15022006> </SPAN>Error Value: You are not
allowed to access 'getOwner' in this context</FONT></SPAN></P></DIV>
<DIV><SPAN class=016582715-15022006><FONT size=2>ExtFile imports SimpleItem
which, in turn, imports AccessControl.Owner</FONT></SPAN></DIV>
<DIV><SPAN class=016582715-15022006><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=016582715-15022006><FONT size=2>Here's the code from
ExtFile:</FONT></SPAN></DIV>
<DIV><SPAN class=016582715-15022006><FONT size=2>from OFS.SimpleItem import
SimpleItem</FONT></SPAN></DIV>
<DIV><SPAN class=016582715-15022006><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=016582715-15022006><FONT size=2>Here's the code from
SimpleItem:</FONT></SPAN></DIV>
<DIV><SPAN class=016582715-15022006><FONT size=2>import AccessControl.Role,
AccessControl.Owned, App.Common</FONT></SPAN></DIV>
<DIV><SPAN class=016582715-15022006><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=016582715-15022006><FONT size=2>I've got some other custom
objects in my application which import SimpleItem and I am able to call
getOwner() on them no problem.</FONT></SPAN></DIV>
<DIV><SPAN class=016582715-15022006><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=016582715-15022006><FONT size=2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=016582715-15022006><FONT size=2>Tom</FONT></SPAN></DIV>
<DIV><SPAN class=016582715-15022006><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=016582715-15022006><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=016582715-15022006><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=016582715-15022006><FONT
size=2></FONT></SPAN> </DIV></BODY></HTML>