From 277117ba34204995efac766b715fe62270a5e908 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 26 May 2010 09:30:43 -0500 Subject: Move package flagging URLs below the package We were still using the user-facing package IDs here which we have eliminated everywhere else Change it to use the same user-friendly URL pattern we are using elsewhere. Signed-off-by: Dan McGee --- urls.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'urls.py') diff --git a/urls.py b/urls.py index ecdc31e..c52f6ab 100644 --- a/urls.py +++ b/urls.py @@ -25,13 +25,11 @@ sitemaps = { admin.autodiscover() urlpatterns = patterns('', - (r'^packages/flag/(\d+)/$', 'packages.views.flag'), (r'^packages/flaghelp/$', 'packages.views.flaghelp'), - (r'^packages/unflag/(\d+)/$', 'packages.views.unflag'), - (r'^packages/signoffs/$', 'packages.views.signoffs'), + (r'^packages/signoffs/$', 'packages.views.signoffs'), (r'^packages/signoff_package/(?P[A-z0-9]+)/(?P[A-z0-9\-+.]+)/$', 'packages.views.signoff_package'), - (r'^packages/update/$', 'packages.views.update'), + (r'^packages/update/$', 'packages.views.update'), # Preference is for the packages/ url below, but search is kept # because other projects link to it @@ -50,6 +48,10 @@ urlpatterns = patterns('', 'packages.views.files'), (r'^packages/(?P[A-z0-9\-]+)/(?P[A-z0-9]+)/(?P[A-z0-9\-+.]+)/maintainer/$', 'packages.views.getmaintainer'), + (r'^packages/(?P[A-z0-9\-]+)/(?P[A-z0-9]+)/(?P[A-z0-9\-+.]+)/flag/$', + 'packages.views.flag'), + (r'^packages/(?P[A-z0-9\-]+)/(?P[A-z0-9]+)/(?P[A-z0-9\-+.]+)/unflag/$', + 'packages.views.unflag'), (r'^todo/(\d+)/$', 'todolists.views.view'), (r'^todo/add/$', 'todolists.views.add'), -- cgit v1.2.3-24-g4f1b