Skip to content
Snippets Groups Projects
Commit 1e75b554 authored by schulmax's avatar schulmax
Browse files

[TASK] Inspect of updates now only colors changed attributes

parent e4c22d2a
Branches
No related tags found
No related merge requests found
...@@ -627,7 +627,10 @@ class EntityList(list): ...@@ -627,7 +627,10 @@ class EntityList(list):
if operation == OPERATION_INSERT: if operation == OPERATION_INSERT:
value = u'\033[32m' + source_value + u'\033[0m' value = u'\033[32m' + source_value + u'\033[0m'
elif operation == OPERATION_UPDATE: elif operation == OPERATION_UPDATE:
if target_value != source_value:
value = u'\033[31m' + target_value + u'\033[0m' + u'\n' + u'\033[32m' + source_value + u'\033[0m' value = u'\033[31m' + target_value + u'\033[0m' + u'\n' + u'\033[32m' + source_value + u'\033[0m'
else:
value = source_value
elif operation == OPERATION_DELETE: elif operation == OPERATION_DELETE:
value = u'\033[31m' + target_value + u'\033[0m' value = u'\033[31m' + target_value + u'\033[0m'
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment