| Age | Commit message (Collapse) | Author |
|
timeline.
refs #5789.
|
|
Also removed related utility functions:
* django.utils.html.fix_ampersands
* django.utils.html.clean_html
|
|
Fixed #21840 -- Moved dunder methods from SimpleLazyObject to LazyObject...
|
|
|
|
Since d2e242d16c6dde6f4736086fb38057424bed3edb made isinstance()
calls work correctly on LazyObject, we can simplify the
implementation of is_local_storage added in
7e27885c6e7588471fd94a4def16b7081577bdfc.
|
|
This commit also added tests for LazyObject and refactored
the testsuite of SimpleLazyObject so that it can share
test cases with LazyObject.
|
|
Refs #21188. Now pure Python DeprecationWarning visibility should
be back to Python defaults.
|
|
Thanks Anssi Kääriäinen for the idea and Simon Charette for the
review.
|
|
Thanks Piotr Kasprzyk for help with the patch.
|
|
|
|
By removing the 'supported' keyword from the detection methods and only relying
on a cached settings.LANGUAGES, the speed of said methods has been improved;
around 4x raw performance. This allows us to stop checking Python's incomplete
list of locales, and rely on a less restrictive regular expression for
accepting certain locales.
HTTP Accept-Language is defined as being case-insensitive, based on this fact
extra performance improvements have been made; it wouldn't make sense to
check for case differences.
|
|
|
|
language session key use
|
|
Refs #21725.
|
|
With this pull request, request #878 should considered closed.
Thanks to nvie for the patch.
|
|
Thanks to nedbatchelder for the report.
|
|
Thanks esevece for the suggestion and Nick Sandford and Martin Warne
for the inital work on the patch.
|
|
Refs #21049. Thanks quinox for the report.
|
|
in Windows NT 6.
Original patch by Vajrasky Kok. Reviewed by Florian Apolloner, Aymeric Augustin.
|
|
When a method decorator was used in conjunction with a decorator
implemented as a descriptor, method_decorator did not correctly respect
the method binding.
Thanks for Graham Dumpleton for the report and initial patch.
|
|
Used available_attrs in method_decorator
|
|
import_string().
Thanks Aymeric Augustin for the suggestion and review.
|
|
|
|
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.
|
|
|
|
Thanks Wim for the report.
|
|
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.
|
|
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.
|
|
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.
|
|
Copied attributes into the decorated method and special case __name__
copy as this will not be present on a Class object. Added regression
test to decorator suite.
|
|
Thanks Aymeric Augustin for the report and the review.
|
|
Previously, only the URL path was included in the cache key.
Thanks jamey for the suggestion.
|
|
Eliminated the app_ prefix that was more confusing than useful.
|
|
|
|
Also renamed app_cache to apps and "app cache" to "app registry".
Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
|
|
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.
|
|
Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
|
|
Used the app cache's get_app_configs() method instead.
|
|
|
|
|
|
Refs #21574
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
Thanks Bouke Haarsma for report, fix and initial patch.
|
|
Thanks Loic Bistuer.
|
|
infinite loop.
|