diff options
author | Dan McGee <dan@archlinux.org> | 2011-04-28 17:44:43 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-04-28 17:53:22 -0500 |
commit | 1ff9c0fc5db1aab393eed5751e94ed8ac127c0c2 (patch) | |
tree | 97ae7328cb2b47593f3cc872ac9aa945e9aa1528 /isotests/urls.py | |
parent | 684fb5353d0e61075c7a24f703b680d58e8dcf00 (diff) |
isotests: massive overview refactor
Copy pasted code sucks. Fix it.
Also, ensure 500 errors aren't going to be popping up when people start
typing invalid URLs for fun, among a lot of other small fixes going in
here.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'isotests/urls.py')
-rw-r--r-- | isotests/urls.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/isotests/urls.py b/isotests/urls.py index 7f438368..12497cde 100644 --- a/isotests/urls.py +++ b/isotests/urls.py @@ -1,12 +1,11 @@ from django.conf.urls.defaults import patterns urlpatterns = patterns('isotests.views', - (r'^$', 'view_results'), - (r'^add/$', 'add_result'), - (r'^thanks/$', 'thanks'), - (r'^results/$', 'view_results'), - (r'^results/(?P<option>[a-z0-9_]+)/(?P<value>.+)/$', 'view_results_for'), - (r'^results/(?P<isoid>.+)/$', 'view_results_iso'), + (r'^$', 'test_results_overview', {}, 'releng-test-overview'), + (r'^submit/$', 'submit_test_result', {}, 'releng-test-submit'), + (r'^thanks/$', 'submit_test_thanks', {}, 'releng-test-thanks'), + (r'^iso/(?P<iso_id>\d+)/$', 'test_results_iso', {}, 'releng-results-iso'), + (r'^(?P<option>.+)/(?P<value>\d+)/$','test_results_for', {}, 'releng-results-for'), ) # vim: set ts=4 sw=4 et: |