Author: russellm
Date: 2010-02-02 18:24:05 -0600 (Tue, 02 Feb 2010)
New Revision: 12376

Modified:
   django/trunk/django/core/management/color.py
Log:
Fixed #12754 -- Reintroduced style.ERROR_OUTPUT as an alias for style.ERROR. 
Django doesn't need this itself, but it would be a backwards incompatible 
change to remove it. Thanks to Jeff Balogh for the report.

Modified: django/trunk/django/core/management/color.py
===================================================================
--- django/trunk/django/core/management/color.py        2010-02-02 13:01:27 UTC 
(rev 12375)
+++ django/trunk/django/core/management/color.py        2010-02-03 00:24:05 UTC 
(rev 12376)
@@ -35,6 +35,9 @@
             for role in termcolors.PALETTES[termcolors.NOCOLOR_PALETTE]:
                 format = color_settings.get(role,{})
                 setattr(style, role, termcolors.make_style(**format))
+            # For backwards compatibility,
+            # set style for ERROR_OUTPUT == ERROR
+            setattr(style, 'ERROR_OUTPUT', style.ERROR)
         else:
             style = no_style()
     return style

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to