Nicer activity for changing a shot thumbnail

This commit is contained in:
2016-11-03 17:33:02 +01:00
parent 546de9bc65
commit a047dbac48

View File

@@ -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: