Parent: [3d645d] (diff)

Child: [92d055] (diff)

Download this file

urls.py    32 lines (28 with data), 1.7 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# This Source Code Form of OSSEval is subject to the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE, v. 3.0. If a copy of the AGPL was not
# distributed with this file, You can obtain one at http://www.gnu.org/licenses/agpl.txt
#
# OSSeval is powered by the SOS Open Source AGPL edition.
# The AGPL requires that you do not remove the SOS Open Source attribution and copyright
# notices from the user interface (see section 5.d below).
# OSSEval Copyright 2014 Bitergium SLL
# SOS Open Source Copyright 2012 Roberto Galoppini
# Author: Davide Galletti
from django.conf.urls import patterns, url
from analysis.views import AnalysisList
from analysis import views
urlpatterns = patterns('',
url(r'^$', AnalysisList.as_view(), name='analysis_list'),
url(r'^(?P<analysis_id>\d+)$', views.detail, name='analysis_detail'),
url(r'^questions/(?P<analysis_id>\d+)$', views.analysis_questions, name='analysis_questions'),
url(r'^questions/save_answer$', views.save_answer),
url(r'^questions/get_answers$', views.get_answers),
url(r'^questions/get_metadata$', views.get_metadata),
url(r'^report/(?P<analysis_id>\d+)$', views.analysis_report, name='analysis_report'),
url(r'^report/(?P<analysis_id>\d+)/(?P<weight_scenario_id>\d+)$', views.analysis_report, name='analysis_report_with_scenario'),
url(r'^new$', views.analysis_new, name='analysis_new'),
url(r'^edit/(?P<analysis_id>\d+)$', views.analysis_edit, name='analysis_edit'),
url(r'^export/(?P<analysis_id>\d+)$', views.export, name='analysis_export'),
url(r'^upload_page', views.upload_page, name='upload_page'),
url(r'^perform_import', views.perform_import, name='perform_import'),
)