Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/core/urlresolvers.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed "URLconf" spelling in code comments.Tim Graham2015-10-221-3/+3
|
* Refs #22384 -- Removed the ability to reverse URLs by ↵Tim Graham2015-09-241-86/+40
| | | | dotted path per deprecation timeline.
* Refs #22218 -- Removed conf.urls.patterns() per ↵Tim Graham2015-09-241-8/+0
| | | | deprecation timeline.
* Corrected docstring in core.urlresolvers module.Matt Deacalion Stevens2015-09-211-3/+2
| | | | | The RegexURLResolver.resolve() method no longer returns a tuple. It has returned a ResolverMatch object since commit e0fb90b2.
* Fixed #23813 -- Added checks for common URL pattern errorsAlasdair Nicol2015-09-211-1/+1
| | | | | Thanks jwa and lamby for the suggestions, and timgraham and jarshwah for their reviews.
* Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant2015-08-311-1/+0
|
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-241-2/+2
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Fixed #24906 -- Fixed ResolverMatch.app_name for nested ↵Marten Kenbeek2015-06-061-5/+9
| | | | | | | namespaces. Set ResolverMatch.app_name to the full path of nested application namespaces.
* Fixed #24904 -- Fixed nested namespaces in current_app.Marten Kenbeek2015-06-051-2/+12
| | | | | Fixed reverse() to correctly handled nested namespace lookups in current_app.
* Fixed #24707 -- Improved error reporting for explicitly ↵Harry2015-04-261-0/+5
| | | | imported uncallable views
* Fixed #24476 -- Added context manager/decorator for ↵Bas Peschier2015-03-181-3/+2
| | | | | | | | overriding script prefix. Tests were using an undocumented keyword argument for easily overriding script prefix while reversing. This is now changed into a test utility which can be used as decorator or context manager.
* Fixed #24122 -- Redirected to translated url after ↵Claude Paroz2015-03-131-1/+25
| | | | | | setting language Thanks gbdlin for the initial patch and Tim Graham for the review.
* Fixed #24013 -- Fixed escaping of reverse() prefix.Bas Peschier2015-03-131-9/+6
| | | | | | Prefix was treated as a part of the url pattern, which it is not. Improved tests to conform with RFC 3986 which allows certain characters in path segments without being escaped.
* Fixed #12943 -- Allowed unnamed arguments to be ↵Bas Peschier2015-03-121-1/+9
| | | | | | | | propagated in includes Propagated unnamed arguments as positional arguments into included URLconfs if no named arguments are defined. Positional and keyword arguments are never combined.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-5/+4
|
* Simplified handling of RegexURLResolver.urlconf_module.Aymeric Augustin2015-02-051-11/+10
| | | | | Also made RegexURLResolver.url_patterns a cached property for consistency and efficiency.
* Fixed #23968 -- Replaced list comprehension with ↵Jon Dufresne2014-12-081-1/+1
| | | | generators and dict comprehension
* Fixed #23522 -- Changed reverse() to return a Unicode ↵Jon Dufresne2014-10-071-2/+2
| | | | string; not bytes
* Fixed #23601 -- Ensured view exists in URLconf before ↵Markus Holtermann2014-10-061-1/+6
| | | | importing it in admindocs.
* Limited lines to 119 characters in django/Tim Graham2014-09-051-3/+18
| | | | refs #23395.
* Prevented reverse() from generating URLs pointing to ↵Florian Apolloner2014-08-201-1/+5
| | | | | | other hosts. This is a security fix. Disclosure following shortly.
* Fixed #22223 -- Prevented over-escaping URLs in reverse()Claude Paroz2014-07-091-2/+4
| | | | | | | And follow more closely the class of characters defined in the RFC 3986. Thanks Erik van Zijst for the report and the initial patch, and Tim Graham for the review.
* Refactored common code in handlers/base.py and ↵Anubhav Joshi2014-06-231-13/+1
| | | | urlresolvers.py
* Fixed #22384 -- Deprecated reversing URLs by dotted path.Tim Graham2014-06-031-0/+9
|
* Fixed #21157 -- Fixed problems with ResolverMatchKevin Christopher Henry2014-04-241-45/+60
| | | | | | | | | | - Fixed bug in get_callable() that caused resolve() to put a string in ResolverMatch.func. - Made ResolverMatch.url_name match the actual url name (or None). - Updated tests that used the string value in ResolverMatch.func, and added regression tests for this bug. - Corrected test urls whose dummy view paths caused failures (behavior that was previously masked by this bug).
* Fixed #22486 -- Restored the ability to reverse views ↵Preston Timmons2014-04-231-0/+4
| | | | | | | | created using functools.partial. Regression in 8b93b31487d6d3b0fcbbd0498991ea0db9088054. Thanks rcoup for the report.
* Fixed a remote code execution vulnerabilty in URL reversing.Tim Graham2014-04-221-1/+20
| | | | | | Thanks Benjamin Bach for the report and initial patch. This is a security fix; disclosure to follow shortly.
* Fixed #7571 -- Fixed parameter matching in include()'d ↵Athena2014-03-051-4/+2
| | | | | | | | | | | | urlpattern Fixed URL resolving in the case where an outer regex includes an inner regex and both regexes use positional parameters instead of named groups, causing the outer regex's parameters to override the inner regex's. Modified the regex url resolver so that it will concatenates and then normalizes, instead of normalizing and then concatenating.
* Fixed #21435 -- Improved error message when urlconf is ↵Baptiste Mispelon2014-02-221-1/+7
| | | | | | | | | | empty. The new error message now hints that the most likely issue is a circular import. Thanks to trac user elena for the report and to bpeschier for the original patch.
* Corrected a pair of flake8 violationsAlex Gaynor2014-02-151-1/+0
|
* Improved fix for #18373 -- backward compatibilityGrzegorz Nosek2014-02-151-7/+4
| | | | | | Commit 79558c78 cleaned up the (undocumented) interface of Resolver404 exception, which breaks compatibility with code messing with .args[0] directly. Revert the cleanup part and simply leave the fix itself.
* Fixed some flake8 errors from recent commits.Tim Graham2014-02-151-0/+1
|
* Fixed #18373 - improved handling of Resolver404s from viewsGrzegorz Nosek2014-02-151-4/+7
| | | | | | | | | | | When django.core.urlresolvers.resolve was called from a view, failed and the exception was propagated and rendered by technical_404_response, the URL mentioned on the page was the current URL instead of the URL passed to resolve(). Fixed by using the path attribute from the Resolver404 exception instead of request.path_info. Also cleaned up the exceptions to use standard named parameters instead of stuffing a dict in args[0]
* Moved relative URL handling added in refs #21177 to a ↵Tim Graham2014-02-151-4/+0
| | | | | | better place. Thanks apollo13: "reverse() shouldn't know about absolute/relative paths."
* Fixed #21177 -- Made resolve_url support relative URLs.Antoine Catton2014-02-141-0/+4
| | | | This fixes redirecting to relative URLs with django.shortcuts.redirect.
* Fixed E127 pep8 warnings.Loic Bistuer2013-12-141-2/+1
|
* Fixed #21351 -- Replaced memoize with Python's lru_cache.Bouke Haarsma2013-11-111-15/+8
| | | | | | | | | | 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.
* Fixed all E226 violationsAlex Gaynor2013-11-031-1/+1
|
* Fixed all E261 warningscoagulant2013-11-021-3/+3
|
* More attacking E302 violatorsAlex Gaynor2013-11-021-0/+18
|
* Fixed all the E203 violationsAlex Gaynor2013-10-271-1/+1
|
* Fixed #21268 -- Fixed E303 pep8 warningsAlasdair Nicol2013-10-181-1/+0
|
* Fixed #21043 -- Made resolve() handle reverse_lazy objects.Dan Johnson2013-09-061-0/+1
| | | | Thanks Keryn Knight for the report.
* Fixed #20989 -- Removed useless explicit list ↵Simon Charette2013-08-301-3/+3
| | | | comprehensions.
* Deprecated django.utils.importlibClaude Paroz2013-07-291-1/+1
| | | | This was a shim for pre-Python 2.7 support.
* Fixed #17076 -- When reversing a URL fails, inform the ↵Wilfred Hughes2013-06-141-1/+4
| | | | user which patterns were tried.
* Fixed #18169 -- NoReverseMatch not silenced if from ↵Anssi Kääriäinen2013-05-311-2/+1
| | | | block.super
* Fixed #19866 -- Added security logger and return 400 for ↵Preston Holmes2013-05-261-0/+3
| | | | | | | | | | | | SuspiciousOperation. SuspiciousOperations have been differentiated into subclasses, and are now logged to a 'django.security.*' logger. SuspiciousOperations that reach django.core.handlers.base.BaseHandler will now return a 400 instead of a 500. Thanks to tiwoc for the report, and Carl Meyer and Donald Stufft for review.
* Fixed #13260 -- Quoted arguments interpolated in URLs in ↵Aymeric Augustin2013-03-181-6/+14
| | | | reverse.
* Fix #20022: Correctly handle prefixes with url-unsafe ↵Baptiste Mispelon2013-03-131-1/+1
| | | | characters in reverse().