urls.py 2.59 KB
from django.conf.urls import url
from . import views

urlpatterns = [
               url(r'^$', views.requests_list, name="requests_list"),
               url(r'^(?P<status>-?\d)/(?P<message>.+)$', views.requests_list, name="requests_list"),

               url(r'^action_request/(?P<req_id>\d+)/(?P<action>[a-z_]{1,20})$', views.action_request, name="action_request"),
               url(r'^action_request/(?P<req_id>\d+)/(?P<action>[a-z_]{1,20})/(?P<status>-?\d)/(?P<message>.+)$', views.action_request, name="action_request_message"),

               url(r'^action_sequence/(?P<seq_id>\d+)/(?P<action>[a-z_]{1,20})$', views.action_sequence, name="action_sequence"),
               url(r'^action_sequence/(?P<seq_id>\d+)/(?P<action>[a-z_]{1,20})/(?P<status>-?\d)/(?P<message>.+)$', views.action_sequence, name="action_sequence_message"),

               url(r'^action_album/(?P<alb_id>\d+)/(?P<action>[a-z_]{1,20})$', views.action_album, name="action_album"),
               url(r'^action_album/(?P<alb_id>\d+)/(?P<action>[a-z_]{1,20})/(?P<status>-?\d)/(?P<message>.+)$', views.action_album, name="action_album_message"),

               url(r'^action_plan/(?P<plan_id>\d+)/(?P<action>[a-z_]{1,20})$', views.action_plan, name="action_plan"),
               url(r'^action_plan/(?P<plan_id>\d+)/(?P<action>[a-z_]{1,20})/(?P<status>-?\d)/(?P<message>.+)$', views.action_plan, name="action_plan_message"),

               url(r'^request_validate/(?P<req_id>\d+)$', views.request_validate, name="request_validate"),
               url(r'^sequence_validate/(?P<seq_id>\d+)$', views.sequence_validate, name="sequence_validate"),
               url(r'^album_validate/(?P<alb_id>\d+)$', views.album_validate, name="album_validate"),
               url(r'^plan_validate/(?P<plan_id>\d+)$', views.plan_validate, name="plan_validate"),

               url(r'^create_request$', views.create_request, name="create_request"),
               url(r'^create_sequence/(?P<req_id>\d+)$', views.create_sequence, name="create_sequence"),
               url(r'^create_album/(?P<seq_id>\d+)$', views.create_album, name="create_album"),
               url(r'^create_plan/(?P<alb_id>\d+)$', views.create_plan, name="create_plan"),

               url(r'^submit_request/(?P<req_id>\d+)/(?P<redir>[a-z_]{1,20})$', views.submit_request, name="submit_request"),
               url(r'^unsubmit_request/(?P<req_id>\d+)$', views.unsubmit_request, name="unsubmit_request"),

               url(r'^export_request/(?P<req_id>\d+)$', views.export_request, name="export_request"),
               url(r'^import_request$', views.import_request, name="import_request"),

              ]