from django.conf.urls import url from .petits_cours_views import DemandeListView, DemandeDetailView from .decorators import buro_required from . import views, petits_cours_views export_patterns = [ url(r'^members$', views.export_members, name="export.members"), url(r'^mega/avecremarques$', views.export_mega_remarksonly), url(r'^mega/participants$', views.export_mega_participants, name="export.mega.participants"), url(r'^mega/orgas$', views.export_mega_orgas, name="export.mega.orgas"), url(r'^mega/(?P.+)$', views.export_mega_bytype), url(r'^mega$', views.export_mega, name="export.mega"), ] petitcours_patterns = [ url(r'^inscription$', petits_cours_views.inscription, name='petits-cours-inscription'), url(r'^demande$', petits_cours_views.demande, name='petits-cours-demande'), url(r'^demande-raw$', petits_cours_views.demande_raw, name='petits-cours-demande-raw'), url(r'^demandes$', buro_required(DemandeListView.as_view()), name='petits-cours-demandes-list'), url(r'^demandes/(?P\d+)$', buro_required(DemandeDetailView.as_view()), name='petits-cours-demande-details'), url(r'^demandes/(?P\d+)/traitement$', petits_cours_views.traitement, name='petits-cours-demande-traitement'), url(r'^demandes/(?P\d+)/retraitement$', petits_cours_views.retraitement, name='petits-cours-demande-retraitement'), ] surveys_patterns = [ url(r'^(?P\d+)/status$', views.survey_status, name="survey.status"), url(r'^(?P\d+)$', views.survey, name="survey"), ] calendar_patterns = [ url(r'^subscription$', views.calendar, name="calendar"), url(r'^(?P[a-z0-9-]+)/calendar.ics$', views.calendar_ics, name="calendar.ics") ]