[Erp5-report] r42436 nicolas.dumazet - /erp5/trunk/products/ERP5Type/Utils.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jan 19 07:36:59 CET 2011


Author: nicolas.dumazet
Date: Wed Jan 19 07:36:59 2011
New Revision: 42436

URL: http://svn.erp5.org?rev=42436&view=rev
Log:
we dont need to sort objects when testing for inclusion

Modified:
    erp5/trunk/products/ERP5Type/Utils.py

Modified: erp5/trunk/products/ERP5Type/Utils.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Utils.py?rev=42436&r1=42435&r2=42436&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Utils.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Utils.py [utf8] Wed Jan 19 07:36:59 2011
@@ -1635,7 +1635,8 @@ def setDefaultProperties(property_holder
       from Products.ERP5Type.ERP5Type import ERP5TypeInformation
       portal_type = object.portal_type
       for group in ERP5TypeInformation.defined_group_list:
-        value = portal_type in portal._getPortalGroupedTypeSet(group)
+        value = portal_type in portal._getPortalGroupedTypeSet(group,
+                                                               enable_sort=False)
         prop = {
            'id'          : group,
            'description' : "accessor to know the membership of portal group %s" \



More information about the Erp5-report mailing list