summaryrefslogtreecommitdiff
path: root/urls.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-07-02 20:02:26 -0500
committerDan McGee <dan@archlinux.org>2010-07-02 20:02:26 -0500
commit2d407d9c1b2149d96fd3296923520aa966f9b561 (patch)
treea20575fa32838f0e909f9ae399fc60f2f1402934 /urls.py
parent67159fed20d36307fad760ba7fad00c6defc6dfc (diff)
mirrorlist: allow filtering by protocol
And add some more "static" URLs to access the non-country filtered lists. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/urls.py b/urls.py
index c8f1790a..2a625e5f 100644
--- a/urls.py
+++ b/urls.py
@@ -67,6 +67,10 @@ urlpatterns = patterns('',
(r'^mirrorlist/$', 'mirrors.views.generate', {}, 'mirrorlist'),
(r'^mirrorlist/all/$', 'mirrors.views.find_mirrors', {'countries': ['all']}),
+ (r'^mirrorlist/all/ftp/$', 'mirrors.views.find_mirrors',
+ {'countries': ['all'], 'protocols': ['ftp']}),
+ (r'^mirrorlist/all/http/$', 'mirrors.views.find_mirrors',
+ {'countries': ['all'], 'protocols': ['http']}),
(r'^devel/$', 'devel.views.index'),
(r'^devel/notify/$', 'devel.views.change_notify'),