Commit 4cae47c3 authored by Aurel's avatar Aurel

remove properties of object at diff


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5281 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4d9d69db
...@@ -4079,6 +4079,9 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -4079,6 +4079,9 @@ Business Template is a set of definitions, such as skins, portal types and categ
if item_name in item_list_1: if item_name in item_list_1:
f1 = StringIO() f1 = StringIO()
f2 = StringIO() f2 = StringIO()
# remove uneeded property
new_object.removeProperties()
installed_object.removeProperties()
OFS.XMLExportImport.exportXML(new_object._p_jar, new_object._p_oid, f1) OFS.XMLExportImport.exportXML(new_object._p_jar, new_object._p_oid, f1)
OFS.XMLExportImport.exportXML(installed_object._p_jar, installed_object._p_oid, f2) OFS.XMLExportImport.exportXML(installed_object._p_jar, installed_object._p_oid, f2)
new_obj_xml = f1.getvalue() new_obj_xml = f1.getvalue()
......
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