Activity: Shorten long values.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
# -*- encoding: utf-8 -*-
|
||||
|
||||
import itertools
|
||||
import logging
|
||||
|
||||
@@ -49,6 +51,9 @@ def activity_after_replacing_shot(shot, original):
|
||||
|
||||
if key == 'properties.status':
|
||||
val_shot = pillar.web.jinja.format_undertitle(val_shot)
|
||||
elif len(val_shot) > 20:
|
||||
val_shot = val_shot[:17] + u'…'
|
||||
|
||||
descr = 'changed "%s" to "%s" in shot "%s"' %\
|
||||
(human_key, val_shot, shot['name'])
|
||||
else:
|
||||
|
Reference in New Issue
Block a user