ac_acquire error happens after inheriting from Folder
All, 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: Exception Type AttributeError Exception Value aq_acquire Traceback (innermost last): * Module ZPublisher.Publish, line 101, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module Shared.DC.Scripts.Bindings, line 306, in __call__ * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec * Module Products.PythonScripts.PythonScript, line 323, in _exec * Module None, line 27, in validateContact <PythonScript at /validateContact used for /contacts> Line 27 * Module Shared.DC.Scripts.Bindings, line 306, in __call__ * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec * Module Products.PythonScripts.PythonScript, line 323, in _exec * Module None, line 39, in addContact <PythonScript at /addContact used for /contacts> Line 39 * Module Products.CMS.cmsContact, line 42, in manage_addContact * Module AccessControl.Role, line 172, in manage_permission * Module AccessControl.Role, line 82, in ac_inherited_permissions * Module OFS.ObjectManager, line 211, in _subobject_permissions AttributeError: aq_acquire 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): #change permissions based on value of private if private==True: self.manage_permission('View',['Authenticated','Content Manager','Manager']) else: self.manage_permission('View',acquire=1) 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. Thanks, Tom Palermo Senior Web Developer Constella Group, LLC
Palermo, Tom wrote at 2006-2-28 11:25 -0500:
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:
Exception Type AttributeError Exception Value aq_acquire
Only acquisition wrappers have the "aq_acquire" method. Looks at if your object were not an acquisition wrapper... -- Dieter
participants (2)
-
Dieter Maurer -
Palermo, Tom