[Zope] AQ Error
Chris A. Bruce
cbruce@sleeter.com
Thu, 14 Feb 2002 08:44:24 -0800
Does anyone know why I would be getting this exception?
Error: AttributeError - aq_acquire
Traceback (most recent call last):
File "/usr/local/www/Zope-2.4/lib/python/DocumentTemplate/DT_Try.py", =
line 221, in render_try_except
result =3D render_blocks(self.section, md)
File "/usr/local/www/Zope-2.4/lib/python/DocumentTemplate/DT_Let.py", =
line 148, in render
return render_blocks(self.section, md)
File "/usr/local/www/Zope-2.4/lib/python/DocumentTemplate/DT_Util.py", =
line 231, in eval
return eval(code, d)
File "<string>", line 2, in f
File "/usr/local/www/Zope-2.4/lib/python/AccessControl/Role.py", line =
234, in manage_permission
for p in self.ac_inherited_permissions(1):
File "/usr/local/www/Zope-2.4/lib/python/AccessControl/Role.py", line =
152, in ac_inherited_permissions
for p in self._subobject_permissions():
File "/usr/local/www/Zope-2.4/lib/python/OFS/ObjectManager.py", line =
256, in _subobject_permissions
return (Products.__ac_permissions__+
AttributeError: aq_acquire
Code:
<dtml-try>
<dtml-call expr=3D"REQUEST.set('roles',['Registered User'])"> =20
<dtml-call expr=3D"REQUEST.set('domains','')">
<dtml-call expr=3D"REQUEST.set('name',REQUEST['UserName'])">
<dtml-call expr=3D"acl_users.manage_users('Add',REQUEST)">
<dtml-except>
<!--
Error: <dtml-var error_type> - <dtml-var error_value>
<dtml-var error_tb>
-->
<!-- <dtml-var "get_transaction().abort()"> -->
</dtml-try>
<dtml-try>
<dtml-let e=3D"Users.UserFolders[REQUEST['UserName']]">
<dtml-call =
"e.manage_setLocalRoles(userid=3DREQUEST['UserName'],roles=3D['Owner'])">=
<dtml-call "e.manage_permission(permission_to_manage=3D'Access =
contents information',roles=3D['Owner','Manager'])">
<dtml-call =
"e.manage_permission(permission_to_manage=3D'View',roles=3D['Owner','Mana=
ger'])">
=20
</dtml-let>
<dtml-let f=3D"Users.RegistrationInfo[REQUEST['UserName']]">
<dtml-call =
"f.manage_setLocalRoles(userid=3DREQUEST['UserName'],roles=3D['Owner'])">=
<dtml-call =
"f.propertysheets.email_list.manage_editProperties(REQUEST)">
<dtml-call =
"f.propertysheets.UserInfo.manage_editProperties(REQUEST)">
</dtml-let>
...
UserFolders and RegistrationInfo are ZClasses that get added by =
ZClassEvent product.
Thanks,
Chris