parceloob: Do not show "None", but an empty string

This commit is contained in:
Laurent Bachelier 2013-08-03 22:04:24 +02:00
commit 21c0c85ddd

View file

@ -51,8 +51,8 @@ class HistoryFormatter(IFormatter):
return result
return ' %s %s %s' % (self.colored('%-19s' % obj.date, 'blue'),
self.colored('%-17s' % obj.location, 'magenta'),
self.colored(obj.activity, 'yellow'))
self.colored('%-17s' % (obj.location or ''), 'magenta'),
self.colored(obj.activity or '', 'yellow'))
class StatusFormatter(IFormatter):
MANDATORY_FIELDS = ('id',)