﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
13922	Enhanced URL Resolver Match	Nowell Strite	nobody	"When Django 1.1 was released URLs gained the ability to be nested with
namespaces by adding ""app_name"" and ""namespace"" attributes to the
include(...) functions within urls.py. The reverse(...) function was
updated to allow you to specify namespace and current_app when
resolving URLs, however, we never brought the resolve(...) function up
to speed to include the relevant namespace and app_name data of the
resolved URL. I have taken an initial stab with code and tests (minus
documentation, until this feature is completed and agreed upon by the
community).

In order to achieve this I have graduated the result of the
resolve(...) method to be a ResolverMatch class as opposed to the old
tuple(func, args, kwargs). I have also implemented this feature to
provides backwards compatibility for the old ""func, args, kwargs =
resolve(...)"" so this feature should hopefully be completely backwards
compatible. The new ResolverMatch class provides access to all
attributes of the resolved URL match such as (url_name, app_name,
namespace, func, args, kwargs).

You can review the diff for this proposal on GitHub.

http://github.com/nowells/django/compare/master...resolver-match

As well as check out the code:

http://github.com/nowells/django/tree/resolver-match

Thanks!
Nowell Strite "		closed	Uncategorized	1.2		fixed			Unreviewed	1	0	0	0	0	0
