diff options
author | Dan McGee <dan@archlinux.org> | 2010-05-26 09:30:43 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-05-26 09:30:43 -0500 |
commit | 277117ba34204995efac766b715fe62270a5e908 (patch) | |
tree | 2475175f1dcce2c01be09320d5ce1e1977a4ad79 /urls.py | |
parent | 8f11dd9065319c5b49fad82c3546d1c291db78fc (diff) |
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 <dan@archlinux.org>
Diffstat (limited to 'urls.py')
-rw-r--r-- | urls.py | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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<arch>[A-z0-9]+)/(?P<pkgname>[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<repo>[A-z0-9\-]+)/(?P<arch>[A-z0-9]+)/(?P<name>[A-z0-9\-+.]+)/maintainer/$', 'packages.views.getmaintainer'), + (r'^packages/(?P<repo>[A-z0-9\-]+)/(?P<arch>[A-z0-9]+)/(?P<name>[A-z0-9\-+.]+)/flag/$', + 'packages.views.flag'), + (r'^packages/(?P<repo>[A-z0-9\-]+)/(?P<arch>[A-z0-9]+)/(?P<name>[A-z0-9\-+.]+)/unflag/$', + 'packages.views.unflag'), (r'^todo/(\d+)/$', 'todolists.views.view'), (r'^todo/add/$', 'todolists.views.add'), |