[Erp5-report] r28912 - /erp5/trunk/products/ERP5Type/ERP5Type.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Sep 11 00:19:12 CEST 2009
Author: jm
Date: Fri Sep 11 00:19:11 2009
New Revision: 28912
URL: http://svn.erp5.org?rev=28912&view=rev
Log:
Fix updateLocalRolesOnSecurityGroups when called on an HBTree.
Modified:
erp5/trunk/products/ERP5Type/ERP5Type.py
Modified: erp5/trunk/products/ERP5Type/ERP5Type.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/ERP5Type.py?rev=28912&r1=28911&r2=28912&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/ERP5Type.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/ERP5Type.py [utf8] Fri Sep 11 00:19:11 2009
@@ -471,8 +471,9 @@
# Fill it with explicit local roles defined as subobjects of current
# object
- if getattr(aq_base(ob), 'isPrincipiaFolderish', 0):
- for roledef in ob.objectValues(spec = 'ERP5 Role Definition'):
+ if getattr(aq_base(ob), 'isPrincipiaFolderish', 0) and \
+ self.allowType('Role Definition'):
+ for roledef in ob.objectValues(portal_type='Role Definition'):
if roledef.getRoleName():
role_category_list_dict.setdefault(roledef.getRoleName(), []).append(
{
More information about the Erp5-report
mailing list