summaryrefslogtreecommitdiff
path: root/django/utils
AgeCommit message (Collapse)Author
2014-02-06Fixed #21731 -- Made javascript_quote escapes '</'.Vajrasky Kok
2014-02-05Revert "Fixed #20296 -- Allowed SafeData and EscapeData to be lazy"Baptiste Mispelon
This reverts commit 2ee447fb5f8974b432d3dd421af9a242215aea44. That commit introduced a regression (#21882) and didn't really do what it was supposed to: while it did delay the evaluation of lazy objects passed to mark_safe(), they weren't actually marked as such so they could end up being escaped twice. Refs #21882.
2014-01-26Fixed #21823 -- Upgraded six to 1.5.2Tim Graham
2014-01-26Fixed #21880 -- Added missing items to django.utils.timezone.__all__.Aymeric Augustin
Thanks Wim for the report.
2014-01-20Fixed #16905 -- Added extensible checks (nee validation) frameworkRussell Keith-Magee
This is the result of Christopher Medrela's 2013 Summer of Code project. Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian Apolloner, and Alex Gaynor for review notes along the way. Also: Fixes #8579, fixes #3055, fixes #19844.
2014-01-12Add further workarounds for HTMLParser with Python 3.4.Marc Tamlyn
Python 3.5 will change the default value of convert_charrefs, so 3.4 gives warnings if it's not present. This is slightly technical as 2.7 doesn't have the kwarg. Thankfully, we already have a bunch of workarounds for different versions.
2014-01-12Used a regular lock for app registry population.Aymeric Augustin
Since the app registry is always populated before the first request is processed, the situation described in #18251 for the old app cache cannot happen any more. Refs #18251, #21628.
2013-12-31Fixed #21714 -- Moved logging configuration to global setup()Claude Paroz
Thanks Aymeric Augustin for the report and the review.
2013-12-28Fixed #20346 -- Made cache middleware vary on the full URL.ijl
Previously, only the URL path was included in the cache key. Thanks jamey for the suggestion.
2013-12-26Made the AppConfig API marginally more consistent.Aymeric Augustin
Eliminated the app_ prefix that was more confusing than useful.
2013-12-26Removed a few gratuitous lambdas.Aymeric Augustin
2013-12-24Renamed AppCache to Apps.Aymeric Augustin
Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
2013-12-22Fixed #21651 -- Remove recapitalize.Marc Tamlyn
It was not used inside Django, is not tested or documented. Consequently remove without deprecation path. Thanks to @vajrasky for bringing it to our attention.
2013-12-22Moved apps back in the toplevel django namespace.Aymeric Augustin
Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
2013-12-22Stopped iterating on INSTALLED_APPS.Aymeric Augustin
Used the app cache's get_app_configs() method instead.
2013-12-22Added a context manager to hold the import lock.Aymeric Augustin
2013-12-16Removed unnecessary function-level import.Baptiste Mispelon
2013-12-16Removed unnecessary call to force_text in utils.html.clean_html.Vajrasky Kok
Refs #21574
2013-12-15Fixed #21621 -- Removed kqueue autoreloader.Aymeric Augustin
2013-12-14Fixed E127 pep8 warnings.Loic Bistuer
2013-12-12Fixed #21574 -- Handle bytes consistently in utils.text.normalize_newlines.Baptiste Mispelon
All input is now coerced to text before being normalized. This changes nothing under Python 2 but it allows bytes to be passed to the function without a TypeError under Python3 (bytes are assumed to be utf-8 encoded text). Thanks to trac user vajrasky for the report.
2013-12-12Fixed PEP257 violations (single-quoted docstrings) in utils.text.Baptiste Mispelon
2013-12-10Fixed E124 pep8 warnings.Loic Bistuer
2013-12-07Fixed #21573 -- Improved performance of utils.text.normalize_newlines.Vajrasky Kok
2013-12-04Fixed 21406 -- Made blocktrans 'trimmed' option preserve line numbers.Bouke Haarsma
Thanks Bouke Haarsma for report, fix and initial patch.
2013-12-04Fixed #21546 -- Strengthened kqueue detection.Aymeric Augustin
Thanks Loic Bistuer.
2013-12-03Fixed #21545 -- autoreload kqueue events weren't cleared which caused an ↵Loic Bistuer
infinite loop.
2013-11-28Fixed E125 pep8 warningsChristopher Medrela
2013-11-26Fixed #21355 -- try importing _imaging from PIL namespace first.Richard Xia
2013-11-24Fixed #21500 -- Removed imports of deprecated utils.importlibBaptiste Mispelon
2013-11-23Fixed #21012 -- New API to access cache backends.Curtis Maloney
Thanks Curtis Malony and Florian Apolloner. Squashed commit of the following: commit 3380495e93f5e81b80a251b03ddb0a80b17685f5 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 14:18:07 2013 +0100 Looked up the template_fragments cache at runtime. commit 905a74f52b24a198f802520ff06290a94dedc687 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 14:19:48 2013 +0100 Removed all uses of create_cache. Refactored the cache tests significantly. Made it safe to override the CACHES setting. commit 35e289fe9285feffed3c60657af9279a6a2cfccc Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 12:23:57 2013 +0100 Removed create_cache function. commit 8e274f747a1f1c0c0e6c37873e29067f7fa022e8 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sat Nov 23 12:04:52 2013 +0100 Updated docs to describe a simplified cache backend API. commit ee7eb0f73e6d4699edcf5d357dce715224525cf6 Author: Curtis Maloney <curtis@tinbrain.net> Date: Sat Oct 19 09:49:24 2013 +1100 Fixed #21012 -- Thread-local caches, like databases.
2013-11-20Fixed #21458 -- Made check_for_language more resistant to malformed input.Baptiste Mispelon
Thanks to Sergey Sorokin for the report and to Bouke Haarsma for the review.
2013-11-19Use `classmethod` as a decorator.xuxiang
2013-11-15Fixed the use of the -ise suffix, where -ize is preferedAlex Gaynor
2013-11-12Fixed typo in lru_cache.py; refs #21351.Vajrasky Kok
2013-11-11Flake8 fixes -- including not runnign flake8 over a backported fileAlex Gaynor
2013-11-11Fixed #21420 once more.Aymeric Augustin
2013-11-11Fixed #9523 -- Restart runserver after compiling apps translationsBouke Haarsma
Django also uses locales provided by apps, which also might change. Also when i18n is disabled, there is no need for watching translation files.
2013-11-11Fixed #21420 -- Autoreloader on BSD with Python 3.Aymeric Augustin
Thanks Bouke Haarsma for the report.
2013-11-11Fix syntax error under Python 3.2.Aymeric Augustin
2013-11-11Fixed #21351 -- Replaced memoize with Python's lru_cache.Bouke Haarsma
Replaced the custom, untested memoize with a similar decorator from Python's 3.2 stdlib. Although some minor performance degradation (see ticket), it is expected that in the long run lru_cache will outperform memoize once it is implemented in C. Thanks to EvilDMP for the report and Baptiste Mispelon for the idea of replacing memoize with lru_cache.
2013-11-08Fixed #5849 -- Strip whitespace from blocktransBouke Haarsma
Add the trimmed option to the blocktrans tag to trim any newlines and whitespace from its content. This allows the developer to indent the blocktrans tag without adding new lines and whitespace to the msgid in the PO file. Thanks to mpessas for the initial patch and Dmitri Fedortchenko for the report.
2013-11-06flake8 fixesAlex Gaynor
2013-11-06Distinguish between browser-deprecated locales and internallyBaptiste Mispelon
deprecated ones. Thanks to bouke for pointing this out.
2013-11-05Fix python2 breakage caused by e5e044da87800feb6ef63fef1765d8c05022d926.Baptiste Mispelon
2013-11-05Fixed #18419 -- Full backwards compatibility for old language codesBouke Haarsma
Improved documentation about zh-* deprecation and upgrade path. Thanks to Baptiste Mispelon for the code reviews.
2013-11-05Flake8 fixesAlex Gaynor
2013-11-04Fixed python3 breakage introduced by c0a2388a1c4ead1afaec98e4ebc953a772ca3849.Baptiste Mispelon
2013-11-04Fixed #18149 -- Changed language codes for ChineseBouke Haarsma
Language codes for Chinese are zh_Hans (Simplified) and zh_Hant (Traditional). Added support for browsers that still send the deprecated language codes. Thanks to Olli Wang for the report.
2013-11-04Merge pull request #1821 from Bouke/tickets/14170Aymeric Augustin
#14170 -- Reset i18n cache when settings changed