diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2010-01-23 17:26:56 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2010-01-23 17:26:56 +0000 |
| commit | e71b10efb7366f9e80d54960d9e77cc527a7413e (patch) | |
| tree | 1afebb47dd3ec0746c5f5e25400c8fa6b6919d61 /django/utils/termcolors.py | |
| parent | 3df1a16c792d038c528e5e95797680a30ee7868c (diff) | |
Added color configuration for HTTP 304, since it doesn't require as much attention as other 3XX codes.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12281 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/utils/termcolors.py')
| -rw-r--r-- | django/utils/termcolors.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/django/utils/termcolors.py b/django/utils/termcolors.py index 4bcf634061..ccafb42524 100644 --- a/django/utils/termcolors.py +++ b/django/utils/termcolors.py @@ -81,6 +81,7 @@ PALETTES = { 'HTTP_INFO': {}, 'HTTP_SUCCESS': {}, 'HTTP_REDIRECT': {}, + 'HTTP_NOT_MODIFIED': {}, 'HTTP_BAD_REQUEST': {}, 'HTTP_NOT_FOUND': {}, 'HTTP_SERVER_ERROR': {}, @@ -95,6 +96,7 @@ PALETTES = { 'HTTP_INFO': { 'opts': ('bold',) }, 'HTTP_SUCCESS': { }, 'HTTP_REDIRECT': { 'fg': 'green' }, + 'HTTP_NOT_MODIFIED': { 'fg': 'cyan' }, 'HTTP_BAD_REQUEST': { 'fg': 'red', 'opts': ('bold',) }, 'HTTP_NOT_FOUND': { 'fg': 'yellow' }, 'HTTP_SERVER_ERROR': { 'fg': 'magenta', 'opts': ('bold',) }, @@ -109,6 +111,7 @@ PALETTES = { 'HTTP_INFO': { 'opts': ('bold',) }, 'HTTP_SUCCESS': { }, 'HTTP_REDIRECT': { 'fg': 'green', 'opts': ('bold',) }, + 'HTTP_NOT_MODIFIED': { 'fg': 'green' }, 'HTTP_BAD_REQUEST': { 'fg': 'red', 'opts': ('bold',) }, 'HTTP_NOT_FOUND': { 'fg': 'red' }, 'HTTP_SERVER_ERROR': { 'fg': 'magenta', 'opts': ('bold',) }, |
