django1/django/core
Loic Bistuer eb82fb0a9d Refactored color_style() and no_style() to improve testability. Refs #23663.
This includes the following improvements:

- The type of the style object is now called 'Style' rather than 'dummy'.
- The new make_style() function allows generating a Style object directly
  from a config string. Before the only way to get a style object was
  through the environ and it also required that the terminal supported
  colors which isn't necessarily the case when testing.
- The output of no_style() is now cached with @lru_cache.
- The output of no_style() now has the same set of attributes as the
  other Style objects. Previously it allowed anything to pass through
  with __getattr__.
2014-10-22 11:27:00 +07:00
..
cache Fixed #23642 -- Made LocMemCache.incr() thread-safe as documented 2014-10-12 23:47:48 +07:00
checks Fixed #23469 -- Removed test runner compatibility check which often yielded false positives. 2014-10-17 10:31:49 -04:00
files Clarified a comment in django.core.files.temp. 2014-08-29 07:27:15 -04:00
handlers Fixed #19508 -- Implemented uri_to_iri as per RFC. 2014-10-16 02:31:17 +07:00
mail Fixed #23063 -- Convert \n and \r to \r\n when using the SMTP backend as per RFC. 2014-10-12 22:01:24 +02:00
management Refactored color_style() and no_style() to improve testability. Refs #23663. 2014-10-22 11:27:00 +07:00
serializers Fixed #23660 -- Moved sort_dependencies to core. 2014-10-16 03:04:13 +07:00
servers Fixed #19508 -- Implemented uri_to_iri as per RFC. 2014-10-16 02:31:17 +07:00
__init__.py Imported Django from private SVN repository (created from r. 8825) 2005-07-13 01:25:57 +00:00
context_processors.py Converted sql_queries into a lazily evaluated list. 2014-08-30 13:27:56 +02:00
exceptions.py Fixed #22915 -- Document backward incompatible changes in the ValidationError constructor. 2014-07-04 17:05:31 +07:00
paginator.py Ensured that Paginator.page_range works the same on Python 2 and 3. 2014-08-03 21:10:00 +02:00
signals.py Fixed #21483 -- Added WSGI environ to kwargs sent to request_started signal. 2014-08-29 10:12:03 -04:00
signing.py Corrected many style guide violations that the newest version of flake8 catches 2014-03-30 12:11:05 -07:00
urlresolvers.py Fixed #23522 -- Changed reverse() to return a Unicode string; not bytes 2014-10-07 13:06:39 -04:00
validators.py Limited lines to 119 characters in django/ 2014-09-05 09:22:16 -04:00
wsgi.py Stopped populating the app registry as a side effect. 2013-12-30 22:11:17 +01:00