Commit bddab245 authored by Alexandru Băluț's avatar Alexandru Băluț
Browse files

undo: Nicer debug display for MetaChangedAtions

parent 01828a88
......@@ -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)
......
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