[Erp5-report] r29570 - /erp5/trunk/products/ERP5Type/ERP5Type.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Oct 12 17:12:34 CEST 2009


Author: jm
Date: Mon Oct 12 17:12:32 2009
New Revision: 29570

URL: http://svn.erp5.org?rev=29570&view=rev
Log:
Use spec instead of meta_type so that it can work with OFS Folders

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=29570&r1=29569&r2=29570&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/ERP5Type.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/ERP5Type.py [utf8] Mon Oct 12 17:12:32 2009
@@ -149,7 +149,7 @@
       # 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
 




More information about the Erp5-report mailing list