Opened 15 years ago
Closed 15 years ago
#12053 closed (wontfix)
Support url resolver returning RegexURLPattern instances
Reported by: | miracle2k | Owned by: | nobody |
---|---|---|---|
Component: | Core (Other) | Version: | 1.1 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I wonder if it would be feasible to somehow allow django.core.urlresolvers.resolve() to return the full RegexURLPattern instances stored, rather than just the actual callback (view).
I stumbled over this will trying to determine the currently active item in a menu. The menu items store the "name" of the urlpattern they link to, and this feature would allow me to resolve the current request.path, and compare the name of the handling url to each menu item.
Change History (4)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 15 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:4 by , 15 years ago
Resolution: | → wontfix |
---|---|
Status: | reopened → closed |
Marking wontfix because I'm not clear how you think this would work. Trac isn't a good place for bouncing around abstract ideas; either make a concrete proposal, or discuss on django-dev until you have a concrete proposal.
(In [12086]) Fixed #12053 - form examples don't validate according to w3c
Thanks to skyl for the report.