<!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> </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> </DIV>
<DIV><SPAN class=087491616-28022006><FONT size=2>Exception Type
AttributeError<BR>Exception Value aq_acquire</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=087491616-28022006><FONT size=2>Traceback (innermost
last):</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=087491616-28022006><FONT size=2> * Module
ZPublisher.Publish, line 101, in publish<BR> * Module
ZPublisher.mapply, line 88, in mapply<BR> * Module
ZPublisher.Publish, line 39, in call_object<BR> * Module
Shared.DC.Scripts.Bindings, line 306, in __call__<BR> * Module
Shared.DC.Scripts.Bindings, line 343, in _bindAndExec<BR> *
Module Products.PythonScripts.PythonScript, line 323, in
_exec<BR> * Module None, line 27, in
validateContact<BR> <PythonScript at
/validateContact used for /contacts><BR> Line
27<BR> * Module Shared.DC.Scripts.Bindings, line 306, in
__call__<BR> * Module Shared.DC.Scripts.Bindings, line 343, in
_bindAndExec<BR> * Module Products.PythonScripts.PythonScript,
line 323, in _exec<BR> * Module None, line 39, in
addContact<BR> <PythonScript at /addContact
used for /contacts><BR> Line
39<BR> * Module Products.CMS.cmsContact, line 42, in
manage_addContact<BR> * Module AccessControl.Role, line 172,
in manage_permission<BR> * Module AccessControl.Role, line 82,
in ac_inherited_permissions<BR> * Module OFS.ObjectManager,
line 211, in _subobject_permissions</FONT></SPAN></DIV>
<DIV> </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> </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>
#change permissions based on value of
private<BR>
if
private==True:<BR>
self.manage_permission('View',['Authenticated','Content
Manager','Manager'])<BR>
else:<BR>
self.manage_permission('View',acquire=1)</FONT></SPAN></DIV>
<DIV><SPAN class=087491616-28022006><FONT size=2></FONT></SPAN> </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> </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> </DIV></BODY></HTML>