Commit 4c9d4e13 authored by Aurel's avatar Aurel

allow to compare to objects in zmi


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4966 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cbe91644
......@@ -94,6 +94,9 @@ if len(uids) == 2:\n
raise \'TemplateConditionError\', \'Business Template must be built to make diff\'\n
if (getattr(bt2, \'template_format_version\', 0)) != 1:\n
raise \'TemplateConditionError\', \'Business Template must be in new format\'\n
else:\n
# compare to objects in ZODB\n
bt2 = bt1\n
\n
def getModifiedObjectList(bt1, bt2):\n
return bt1.preinstall(compare_to=bt2)\n
......@@ -126,55 +129,55 @@ return object_list\n
<item>
<key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAAAAABsAAAAlAAAASwAA
AHPyAgAAZAEAawAAbAEAfQIAAWQCAGsCAGwDAH0EAAF0BAB0BQBkAwCDAgCDAAB9BwB0BAB8BwBk
AHP4AgAAZAEAawAAbAEAfQIAAWQCAGsCAGwDAH0EAAF0BAB0BQBkAwCDAgCDAAB9BwB0BAB8BwBk
BACDAgB9CABkBQB9CQB0BAB8CABkBgCDAgB8CQCDAQB9CgB0CgB8CgCDAQBkBwBqBABvDQABZAgA
ZAkAggIAbgEAAXQEAHQEAHQFAGQKAIMCAGQLAIMCAHQLAHwKAGQMAIMCAIMBAH0NAHQEAHwNAGQN
AIMCAIMAAGQOAGoDAG8NAAFkCABkDwCCAgBuAQABdA0AfA0AZBAAZAwAgwMAZBEAagMAbw0AAWQI
AGQSAIICAG4BAAF0CgB8CgCDAQBkBwBqAgBvdwABdAQAdAQAdAUAZAoAgwIAZAsAgwIAdAsAfAoA
ZBEAgwIAgwEAfQ8AdAQAfA8AZA0AgwIAgwAAZA4AagMAbw0AAWQIAGQPAIICAG4BAAF0DQB8DwBk
EABkDACDAwBkEQBqAwBvDQABZAgAZBIAggIAcXMBAW4BAAFkEwCEAAB9EAB8BAB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VtcGxhdGVfZ2V0RGlmZk9iamVjdExpc3Qo
AQAAAHMiAAAAQnVzaW5lc3NUZW1wbGF0ZV9nZXREaWZmT2JqZWN0TGlzdCgAAAAAKAAAAABzDwAA
AFNjcmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value>
</item>
<item>
<key> <string>_filepath</string> </key>
......
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