<!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=087491616-28022006><FONT size=2>All,</FONT></SPAN></DIV>
<DIV><SPAN class=087491616-28022006><FONT size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=087491616-28022006><FONT size=2>I have a class called Contact 
that is now inheriting from Folder. After I did this, I get the following error 
when attempting to add a new Contact:</FONT></SPAN></DIV>
<DIV><SPAN class=087491616-28022006><FONT size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=087491616-28022006><FONT size=2>Exception Type&nbsp; 
&nbsp;AttributeError<BR>Exception Value &nbsp;aq_acquire</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=087491616-28022006><FONT size=2>Traceback (innermost 
last):</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=087491616-28022006><FONT size=2>&nbsp;&nbsp;&nbsp; * Module 
ZPublisher.Publish, line 101, in publish<BR>&nbsp;&nbsp;&nbsp; * Module 
ZPublisher.mapply, line 88, in mapply<BR>&nbsp;&nbsp;&nbsp; * Module 
ZPublisher.Publish, line 39, in call_object<BR>&nbsp;&nbsp;&nbsp; * Module 
Shared.DC.Scripts.Bindings, line 306, in __call__<BR>&nbsp;&nbsp;&nbsp; * Module 
Shared.DC.Scripts.Bindings, line 343, in _bindAndExec<BR>&nbsp;&nbsp;&nbsp; * 
Module Products.PythonScripts.PythonScript, line 323, in 
_exec<BR>&nbsp;&nbsp;&nbsp; * Module None, line 27, in 
validateContact<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;PythonScript at 
/validateContact used for /contacts&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Line 
27<BR>&nbsp;&nbsp;&nbsp; * Module Shared.DC.Scripts.Bindings, line 306, in 
__call__<BR>&nbsp;&nbsp;&nbsp; * Module Shared.DC.Scripts.Bindings, line 343, in 
_bindAndExec<BR>&nbsp;&nbsp;&nbsp; * Module Products.PythonScripts.PythonScript, 
line 323, in _exec<BR>&nbsp;&nbsp;&nbsp; * Module None, line 39, in 
addContact<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;PythonScript at /addContact 
used for /contacts&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Line 
39<BR>&nbsp;&nbsp;&nbsp; * Module Products.CMS.cmsContact, line 42, in 
manage_addContact<BR>&nbsp;&nbsp;&nbsp; * Module AccessControl.Role, line 172, 
in manage_permission<BR>&nbsp;&nbsp;&nbsp; * Module AccessControl.Role, line 82, 
in ac_inherited_permissions<BR>&nbsp;&nbsp;&nbsp; * Module OFS.ObjectManager, 
line 211, in _subobject_permissions</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=087491616-28022006><FONT size=2>AttributeError: 
aq_acquire</FONT></SPAN></DIV>
<DIV><SPAN class=087491616-28022006><FONT size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=087491616-28022006><FONT size=2>I thought it might be due to 
not having an __ac_permissions__ in my class definition but that didn't seem to 
change anything and Folder already has this so my Contact class should pick up 
__ac_permissions__ from Folder. In the above traceback, line 42 in 
manage_addContact is this (the part inside the if statement is line 42): 
</FONT></SPAN></DIV>
<DIV><SPAN class=087491616-28022006><FONT 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
#change permissions based on value of 
private<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
if 
private==True:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
self.manage_permission('View',['Authenticated','Content 
Manager','Manager'])<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
else:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
self.manage_permission('View',acquire=1)</FONT></SPAN></DIV>
<DIV><SPAN class=087491616-28022006><FONT size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=087491616-28022006><FONT size=2>Any ideas would be much 
appreciated. The error is clearly related to inheriting from Folder as it wasn't 
there before. I just don't know why the error happens.</FONT></SPAN></DIV>
<DIV><SPAN class=087491616-28022006><FONT size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=087491616-28022006><FONT size=2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=087491616-28022006><FONT size=2>Tom Palermo</FONT></SPAN></DIV>
<DIV><SPAN class=087491616-28022006><FONT size=2>Senior Web 
Developer</FONT></SPAN></DIV>
<DIV><SPAN class=087491616-28022006><FONT size=2>Constella Group, 
LLC</FONT></SPAN></DIV>
<DIV><SPAN class=087491616-28022006><FONT 
size=2></FONT></SPAN>&nbsp;</DIV></BODY></HTML>