Commit 061fcc77 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

we don't need to copy last_id property and solver category.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31910 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cab9ebad
...@@ -107,7 +107,8 @@ def _getPropertyAndCategoryList(document): ...@@ -107,7 +107,8 @@ def _getPropertyAndCategoryList(document):
sheet configuration and all category values. sheet configuration and all category values.
""" """
property_map = document.getPropertyMap() 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 # we don't want acquired properties without acquisition_mask_value
for x in property_map: for x in property_map:
if x.has_key('acquisition_base_category') and not x.get('acquisition_mask_value', 0): if x.has_key('acquisition_base_category') and not x.get('acquisition_mask_value', 0):
...@@ -143,7 +144,7 @@ def _getPropertyAndCategoryList(document): ...@@ -143,7 +144,7 @@ def _getPropertyAndCategoryList(document):
document.getPropertyIdList()])) document.getPropertyIdList()]))
def filter_category_func(x): 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, property_dict.update(dict(filter(filter_category_func,
[(x, getPropertyList(x)) for x in \ [(x, getPropertyList(x)) for x in \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment