# 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'^methodology/weight_scenarios_graph/(?P<methodology_version_id>\d+)$', views.weight_scenario_graph, name='weight_scenario_graph'),
url(r'^upload_page', views.upload_page, name='upload_page'),
url(r'^perform_import', views.perform_import, name='perform_import'),
)