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'^create_a_my_model$', views.create_a_my_model, name='create_a_my_model'),
url(r'^edit/(?P<analysis_id>\d+)$', views.analysis_new, 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'),
)