summaryrefslogtreecommitdiffstats
path: root/urls.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-07-02 19:24:54 -0500
committerDan McGee <dan@archlinux.org>2010-07-02 19:24:54 -0500
commitd29d23ecf39fe1ef4a25702618a6ab710ce191b7 (patch)
tree50c507132f02d36d35b8e2ec83af737838f75572 /urls.py
parent1a945dd13731ef8703b4124fda19b80f756fd5fa (diff)
downloadarchweb-d29d23ecf39fe1ef4a25702618a6ab710ce191b7.tar.gz
archweb-d29d23ecf39fe1ef4a25702618a6ab710ce191b7.zip
Get mirrorlist view ready for general use
Make the page much more flexible- allow multiple countries to be selected rather than just one in the form. Also add a lot more text to the page, and move the 'all' option out into its own subheading rather than being in the same form. Both GET and POST requests are now allowed for ease of use from non-browser scenarios or those that wish to update their mirrorlist automatically and submit parameters to the URL. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/urls.py b/urls.py
index 75de9546..c8f1790a 100644
--- a/urls.py
+++ b/urls.py
@@ -63,10 +63,10 @@ urlpatterns = patterns('',
(r'^news/delete/(\d+)/$', 'news.views.delete'),
(r'^news/$', 'news.views.list', {}, 'news-list'),
- (r'^mirrors/$', 'devel.views.mirrorlist'),
+ (r'^mirrors/$', 'devel.views.mirrorlist', {}, 'mirrors-list'),
- (r'^mirrorlist/$', 'mirrors.views.choose'),
- (r'^mirrorlist/(?P<country>[A-z0-9 ]+)/$', 'mirrors.views.generate'),
+ (r'^mirrorlist/$', 'mirrors.views.generate', {}, 'mirrorlist'),
+ (r'^mirrorlist/all/$', 'mirrors.views.find_mirrors', {'countries': ['all']}),
(r'^devel/$', 'devel.views.index'),
(r'^devel/notify/$', 'devel.views.change_notify'),