PageRenderTime 26ms CodeModel.GetById 52ms RepoModel.GetById 0ms app.codeStats 0ms

/opentrials/repository/urls.py

https://github.com/joncasdam/opentrials
Python | 41 lines | 37 code | 4 blank | 0 comment | 0 complexity | 60293c044c6e0af031d6502e218186b4 MD5 | raw file
  1. from django.conf.urls.defaults import *
  2. from django.views.generic.list_detail import object_detail, object_list
  3. from repository.models import ClinicalTrial
  4. from repository.views import edit_trial_index, full_view, index, step_1, step_2, step_3
  5. from repository.views import step_4, step_5, step_6, step_7, step_8, step_9, new_institution, all_trials_xls
  6. from repository.views import trial_registered, trial_view, recruiting, trial_ictrp, trial_otxml
  7. from repository.views import all_trials_ictrp, contacts, advanced_search, multi_otxml, custom_otcsv
  8. urlpatterns = patterns('',
  9. url(r'^edit/(\d+)/$', edit_trial_index, name='repository.edittrial'),
  10. url(r'^view/(?P<trial_pk>\d+)/$', trial_view, name='repository.trialview'),
  11. url(r'^new_institution/$', new_institution, name='new_institution'),
  12. url(r'^contacts/$', contacts, name='contacts'),
  13. url(r'^step_1/(\d+)/$', step_1, name='step_1'),
  14. url(r'^step_2/(\d+)/$', step_2, name='step_2'),
  15. url(r'^step_3/(\d+)/$', step_3, name='step_3'),
  16. url(r'^step_4/(\d+)/$', step_4, name='step_4'),
  17. url(r'^step_5/(\d+)/$', step_5, name='step_5'),
  18. url(r'^step_6/(\d+)/$', step_6, name='step_6'),
  19. url(r'^step_7/(\d+)/$', step_7, name='step_7'),
  20. url(r'^step_8/(\d+)/$', step_8, name='step_8'),
  21. url(r'^step_9/(\d+)/$', step_9, name='step_9'),
  22. #public
  23. url(r'^recruiting/$', recruiting, name='repository.recruiting'),
  24. url(r'^advanced_search/$', advanced_search, name='repository.advanced_search'),
  25. url(r'^(?P<trial_fossil_id>[0-9A-Za-z-]+)/xml/ictrp/$', trial_ictrp, name='repository.trial_ictrp'),
  26. url(r'^(?P<trial_fossil_id>[0-9A-Za-z-]+)/xml/ot/$', trial_otxml, name='repository.trial_otxml'),
  27. url(r'^(?P<trial_fossil_id>[0-9A-Za-z-]+)/v(?P<trial_version>\d+)/$', trial_registered, name='repository.trial_registered_version'),
  28. url(r'^(?P<trial_fossil_id>[0-9A-Za-z-]+)/v(?P<trial_version>\d+)/xml/ictrp/$', trial_ictrp, name='repository.trial_ictrp_version'),
  29. url(r'^(?P<trial_id>[0-9A-Za-z-]+)/v(?P<trial_version>\d+)/xml/opentrials/$', trial_otxml, name='repository.trial_otxml_version'),
  30. url(r'^all/xml/ictrp$', all_trials_ictrp),
  31. url(r'^multi/xml/ot', multi_otxml, name='repository.multi_otxml'),
  32. url(r'^multi/csv/ot', custom_otcsv, name='repository.custom_otcsv'),
  33. url(r'^all/xls$', all_trials_xls),
  34. url(r'^(?P<trial_fossil_id>[0-9A-Za-z-]+)/([\w|\W]+)?$', trial_registered, name='repository.trial_registered'),
  35. url(r'^$', index, name='repository.index'),
  36. )