From d29d23ecf39fe1ef4a25702618a6ab710ce191b7 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 2 Jul 2010 19:24:54 -0500 Subject: 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 --- urls.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'urls.py') diff --git a/urls.py b/urls.py index 75de954..c8f1790 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[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'), -- cgit v1.2.3-24-g4f1b