[Erp5-report] r31910 kazuhiko - /erp5/trunk/products/ERP5/MovementCollectionDiff.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Jan 22 14:58:14 CET 2010


Author: kazuhiko
Date: Fri Jan 22 14:58:12 2010
New Revision: 31910

URL: http://svn.erp5.org?rev=31910&view=rev
Log:
we don't need to copy last_id property and solver category.

Modified:
    erp5/trunk/products/ERP5/MovementCollectionDiff.py

Modified: erp5/trunk/products/ERP5/MovementCollectionDiff.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/MovementCollectionDiff.py?rev=31910&r1=31909&r2=31910&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/MovementCollectionDiff.py [utf8] (original)
+++ erp5/trunk/products/ERP5/MovementCollectionDiff.py [utf8] Fri Jan 22 14:58:12 2010
@@ -107,7 +107,8 @@
   sheet configuration and all category values.
   """
   property_map = document.getPropertyMap()
-  bad_property_list = ['id', 'uid', 'categories_list', 'int_index']
+  bad_property_list = ['id', 'uid', 'categories_list', 'int_index', 'last_id',]
+  bad_category_list = ['solver',]
   # we don't want acquired properties without acquisition_mask_value
   for x in property_map:
     if x.has_key('acquisition_base_category') and not x.get('acquisition_mask_value', 0):
@@ -143,7 +144,7 @@
                               document.getPropertyIdList()]))
 
   def filter_category_func(x):
-    return len(x[1]) != 0
+    return len(x[1]) != 0 and x[0] not in bad_category_list
 
   property_dict.update(dict(filter(filter_category_func,
                                    [(x, getPropertyList(x)) for x in \




More information about the Erp5-report mailing list