diff options
author | Dan McGee <dan@archlinux.org> | 2010-07-02 19:24:54 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-07-02 19:24:54 -0500 |
commit | d29d23ecf39fe1ef4a25702618a6ab710ce191b7 (patch) | |
tree | 50c507132f02d36d35b8e2ec83af737838f75572 /urls.py | |
parent | 1a945dd13731ef8703b4124fda19b80f756fd5fa (diff) |
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.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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'), |