#25439: Add `SUCCESS` style to termcolor palettes -------------------------------------+------------------------------------- Reporter: Deacalion | Owner: nobody Type: New feature | Status: new Component: Utilities | Version: 1.8 Severity: Normal | Resolution: Keywords: termcolor | Triage Stage: termcolour colors colours | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by Deacalion):
* needs_better_patch: => 0 * needs_tests: => 0 * needs_docs: => 0 Old description: > I've just created a management command that shows if something was > successful or whether an error was encountered trying to perform the > task. I looked at the palettes in "django/utils/termcolors.py" to find a > bold red for displaying the error and found it was called "ERROR". > > However, the only bold green style I found was "MIGRATE_SUCCESS", but it > feels odd using this in my management command since it has nothing to do > with migrations. > > Could I add a generic "SUCCESS" style that is the same as > "MIGRATE_SUCCESS" or should these styles not be used by third party > management commands? New description: I've just created a management command that shows if something was successful or whether an error was encountered trying to perform the task. I looked at the palettes in "django/utils/termcolors.py" to find a bold red for displaying the error and found it was called "ERROR". However, the only bold green style I found was "MIGRATE_SUCCESS", but it feels odd using this in my management command since it has nothing to do with migrations. Could I add a generic "SUCCESS" style that is the same as "MIGRATE_SUCCESS" or should these styles not be used by third party management commands? Edit: added a screencap of all the styles. -- -- Ticket URL: <https://code.djangoproject.com/ticket/25439#comment:1> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/067.75b410554f85fd329322644c07b1b6b0%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.