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 miracle2k, 15 years ago

comment:2 by Luke Plant, 15 years ago

Resolution: fixed
Status: newclosed

(In [12086]) Fixed #12053 - form examples don't validate according to w3c

Thanks to skyl for the report.

comment:3 by Luke Plant, 15 years ago

Resolution: fixed
Status: closedreopened

Oops, typo in commit message. [12086] actually fixed #12503.

comment:4 by Russell Keith-Magee, 15 years ago

Resolution: wontfix
Status: reopenedclosed

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.

Note: See TracTickets for help on using tickets.
Back to Top