Code

Opened 5 years ago

Closed 4 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: UI/UX:

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.

Attachments (0)

Change History (4)

comment:1 Changed 5 years ago by miracle2k

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 5 years ago by lukeplant

  • Resolution set to fixed
  • Status changed from new to closed

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

Thanks to skyl for the report.

comment:3 Changed 5 years ago by lukeplant

  • Resolution fixed deleted
  • Status changed from closed to reopened

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

comment:4 Changed 4 years ago by russellm

  • Resolution set to wontfix
  • Status changed from reopened to 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.