[pitivi] undo: Nicer debug display for MetaChangedAtions
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] undo: Nicer debug display for MetaChangedAtions
- Date: Fri, 5 Mar 2021 23:07:56 +0000 (UTC)
commit bddab245a4aa805a31ba6262ec585d6569b74b8b
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Sat Apr 1 15:11:57 2017 +0200
undo: Nicer debug display for MetaChangedAtions
pitivi/undo/undo.py | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/pitivi/undo/undo.py b/pitivi/undo/undo.py
index 8e7ec0f19..000ef1bdd 100644
--- a/pitivi/undo/undo.py
+++ b/pitivi/undo/undo.py
@@ -438,6 +438,9 @@ class MetaChangedAction(UndoableAutomaticObjectAction):
self.old_value = current_value
self.new_value = new_value
+ def __repr__(self):
+ return "<MetaChangedAction %s.%s: %s -> %s>" % (self.auto_object, self.item, self.old_value,
self.new_value)
+
def do(self):
self.auto_object.set_meta(self.item, self.new_value)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]