Commit bb2e7387 authored by Aurel's avatar Aurel

use generateXml instead of generate_xml


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4686 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1dd26715
...@@ -415,8 +415,8 @@ class TemplateTool (BaseTool): ...@@ -415,8 +415,8 @@ class TemplateTool (BaseTool):
item2 = getattr(bt2, item_name) item2 = getattr(bt2, item_name)
for key in item1._objects.keys(): for key in item1._objects.keys():
if item2._objects.has_key(key): if item2._objects.has_key(key):
obj1_xml = item1.generate_xml(path=key) obj1_xml = item1.generateXml(path=key)
obj2_xml = item2.generate_xml(path=key) obj2_xml = item2.generateXml(path=key)
ob1_xml_lines = obj1_xml.splitlines() ob1_xml_lines = obj1_xml.splitlines()
ob2_xml_lines = obj2_xml.splitlines() ob2_xml_lines = obj2_xml.splitlines()
diff_list = list(unified_diff(ob1_xml_lines, ob2_xml_lines, fromfile=bt1.getId(), tofile=bt2.getId(), lineterm='')) diff_list = list(unified_diff(ob1_xml_lines, ob2_xml_lines, fromfile=bt1.getId(), tofile=bt2.getId(), lineterm=''))
......
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