Reversal Lookup TODO Needed

0 views
Skip to first unread message

bradford

unread,
May 27, 2006, 4:20:12 AM5/27/06
to Django developers
I know this is a big/difficult TODO, but the Reversal Lookup needs to
handle nested parentheses.

I'm talking about (urlresolver.py):
# TODO: Handle nested parenthesis in the following regex.
result = re.sub(r'\(([^)]+)\)', MatchChecker(args, kwargs),
self.regex.pattern)

(r'^foo/(?P<bar>(/d+)*)/$', ...) will cause it to freak out

bradford

unread,
May 28, 2006, 1:56:30 AM5/28/06
to Django developers
And another problem. I can't seem to get it to reverse on a url that's
in an app urls.py (referenced by the main urls.py, of course).

bradford

unread,
May 28, 2006, 7:20:25 PM5/28/06
to Django developers
I created a ticket for this http://code.djangoproject.com/ticket/2025

Reply all
Reply to author
Forward
0 new messages