From a047dbac48677978bcc0e02d3fdf80f7238e940c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 3 Nov 2016 17:33:02 +0100 Subject: [PATCH] Nicer activity for changing a shot thumbnail --- attract/shots/eve_hooks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/attract/shots/eve_hooks.py b/attract/shots/eve_hooks.py index 1013ef6..514ace1 100644 --- a/attract/shots/eve_hooks.py +++ b/attract/shots/eve_hooks.py @@ -53,6 +53,8 @@ def activity_after_replacing_shot(shot, original): # Some key- and value-specific overrides if val_shot is pillar.api.utils.DoesNotExist: descr = 'removed "%s" from shot "%s"' % (human_key, shot['name']) + if key == 'picture': + descr = 'changed the thumbnail of shot "%s"' % shot['name'] elif key == 'properties.status': val_shot = pillar.web.jinja.format_undertitle(val_shot) elif isinstance(val_shot, basestring) and len(val_shot) > 80: