Introduce the DISPLAYED_FIELDS in formatter

This commit is contained in:
Florent 2014-06-17 15:45:13 +02:00
commit 30732318b5
4 changed files with 9 additions and 1 deletions

View file

@ -74,7 +74,11 @@ class MandatoryFieldsNotFound(Exception):
class IFormatter(object):
# Tuple of fields mandatory to not crash
MANDATORY_FIELDS = None
# Tuple of displayed field. Set to None if all available fields are
# displayed
DISPLAYED_FIELDS = None
BOLD = ConsoleApplication.BOLD
NC = ConsoleApplication.NC