Hello all,

I just sync my django with the latest SVN version to try the Unicode
branch. Previously I was running Django 0.96pre.
I have now an issue with reverse url.

Here is for exemple my urls.py

urlpatterns = patterns('',
        (r'member/status(?P<status>\d+)/(?P<page>\d+)/$',
'app.views_admin.member_list'),
        (r'member/status(?P<status>\d+)/$', 'app.views_admin.member_list'),
        (r'member/$', 'app.views_admin.member_list'),
)

I used to retrieve the reverse URL by calling :

reverse('app.views_admin.member_list',urlconf=None,args=[3,2]) and
this was returning /member/status3/2/
reverse('app.views_admin.member_list',urlconf=None,args=[3]) and this
was returning /member/status3/
reverse('app.views_admin.member_list',urlconf=None,args=[]) and this
was returning /member/

It seems not working anymore, I get the error message 'NoReverseMatch:
Not enough positional arguments passed in' .

I used to decalre my URL linked to the same view in number of
arguments descending ... so if one arg was given the first (r'member/
status(?P<status>\d+)/(?P<page>\d+)/$', 'app.views_admin.member_list')
didn't match then the (r'member/status(?P<status>\d+)/$',
'app.views_admin.member_list') mached. If no argument was given the
first two URL pattern didn't match so the last one matched. This is
not the case with the latest SVN version

I guess this is a side effect of the named URL patterns feature ....
so do I have to name all my URL now ?

As all my apps and view are build on this, I guess I have quite a lot
of work :)

Thanks in advance,

xav


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to