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 ...@@ -94,6 +94,9 @@ if len(uids) == 2:\n
raise \'TemplateConditionError\', \'Business Template must be built to make diff\'\n raise \'TemplateConditionError\', \'Business Template must be built to make diff\'\n
if (getattr(bt2, \'template_format_version\', 0)) != 1:\n if (getattr(bt2, \'template_format_version\', 0)) != 1:\n
raise \'TemplateConditionError\', \'Business Template must be in new format\'\n raise \'TemplateConditionError\', \'Business Template must be in new format\'\n
else:\n
# compare to objects in ZODB\n
bt2 = bt1\n
\n \n
def getModifiedObjectList(bt1, bt2):\n def getModifiedObjectList(bt1, bt2):\n
return bt1.preinstall(compare_to=bt2)\n return bt1.preinstall(compare_to=bt2)\n
...@@ -126,55 +129,55 @@ return object_list\n ...@@ -126,55 +129,55 @@ return object_list\n
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
<value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAAAAABsAAAAlAAAASwAA <value> <string encoding="base64">YwAAAAAAAAAAAQAAAEAAAABzDQAAAGQBAIQAAFoAAGQAAFMoAgAAAE5jAAAAABsAAAAlAAAASwAA
AHPyAgAAZAEAawAAbAEAfQIAAWQCAGsCAGwDAH0EAAF0BAB0BQBkAwCDAgCDAAB9BwB0BAB8BwBk AHP4AgAAZAEAawAAbAEAfQIAAWQCAGsCAGwDAH0EAAF0BAB0BQBkAwCDAgCDAAB9BwB0BAB8BwBk
BACDAgB9CABkBQB9CQB0BAB8CABkBgCDAgB8CQCDAQB9CgB0CgB8CgCDAQBkBwBqBABvDQABZAgA BACDAgB9CABkBQB9CQB0BAB8CABkBgCDAgB8CQCDAQB9CgB0CgB8CgCDAQBkBwBqBABvDQABZAgA
ZA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AFNjcmlwdCAoUHl0aG9uKXMi AABvYmplY3RfY2xhc3NzAwAAAHN0cnMEAAAAbGluZSgAAAAAKAAAAABzDwAAAFNjcmlwdCAoUHl0
AAAAQnVzaW5lc3NUZW1wbGF0ZV9nZXREaWZmT2JqZWN0TGlzdAEAAABzSAAAAA0BDQQSAQ8BBgEV aG9uKXMiAAAAQnVzaW5lc3NUZW1wbGF0ZV9nZXREaWZmT2JqZWN0TGlzdAEAAABzSgAAAA0BDQQS
AhMBDQInARkBDQEZAQ0DEwEnARkBDQEZARECCQMYAkABEwIPAhUBDQIGAQYBDQAGARwBHAFGARcB AQ8BBgEVAhMBDQInARkBDQEZAQ0DEwEnARkBDQEZAREDBgIJAxgCQAETAg8CFQENAgYBBgENAAYB
EAEOAigBAAAAcyIAAABCdXNpbmVzc1RlbXBsYXRlX2dldERpZmZPYmplY3RMaXN0KAEAAABzIgAA HAEcAUYBFwEQAQ4CKAEAAABzIgAAAEJ1c2luZXNzVGVtcGxhdGVfZ2V0RGlmZk9iamVjdExpc3Qo
AEJ1c2luZXNzVGVtcGxhdGVfZ2V0RGlmZk9iamVjdExpc3QoAAAAACgAAAAAcw8AAABTY3JpcHQg AQAAAHMiAAAAQnVzaW5lc3NUZW1wbGF0ZV9nZXREaWZmT2JqZWN0TGlzdCgAAAAAKAAAAABzDwAA
KFB5dGhvbilzCAAAADxtb2R1bGU+AQAAAHMAAAAA</string> </value> AFNjcmlwdCAoUHl0aG9uKXMIAAAAPG1vZHVsZT4BAAAAcwAAAAA=</string> </value>
</item> </item>
<item> <item>
<key> <string>_filepath</string> </key> <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