From dd96019165cf3747ed5c7b3d4fbdfefaf79fe642 Mon Sep 17 00:00:00 2001
From: Julien Muchembled <jm@nexedi.com>
Date: Mon, 12 Oct 2009 15:12:32 +0000
Subject: [PATCH] Use spec instead of meta_type so that it can work with OFS
 Folders

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29570 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/ERP5Type.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5Type/ERP5Type.py b/product/ERP5Type/ERP5Type.py
index 5fa72d8f2e..b5bf93d5c6 100644
--- a/product/ERP5Type/ERP5Type.py
+++ b/product/ERP5Type/ERP5Type.py
@@ -149,7 +149,7 @@ class LocalRoleAssignorMixIn(object):
       # Return also explicit local roles defined as subobjects of the document
       if getattr(aq_base(ob), 'isPrincipiaFolderish', 0) and \
          self.allowType('Role Definition'):
-        for role in ob.objectValues(meta_type='ERP5 Role Definition'):
+        for role in ob.objectValues(spec='ERP5 Role Definition'):
           if role.getRoleName():
             yield role
 
-- 
GitLab