2016-07-15 00:02:56 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
2016-07-09 19:49:38 +02:00
|
|
|
|
2017-02-09 21:04:32 +01:00
|
|
|
from django.conf.urls import url
|
2017-02-12 04:24:33 +01:00
|
|
|
from .petits_cours_views import DemandeListView, DemandeDetailView
|
|
|
|
from .decorators import buro_required
|
2017-02-09 21:04:32 +01:00
|
|
|
from . import views, petits_cours_views
|
|
|
|
|
2017-02-12 04:24:33 +01:00
|
|
|
|
2017-02-09 21:04:32 +01:00
|
|
|
export_patterns = [
|
2017-02-23 00:31:08 +01:00
|
|
|
url(r'^members$',
|
|
|
|
views.export_members,
|
|
|
|
name="export.members"),
|
2017-02-09 21:04:32 +01:00
|
|
|
url(r'^mega/avecremarques$', views.export_mega_remarksonly),
|
2017-02-23 00:31:08 +01:00
|
|
|
url(r'^mega/participants$',
|
|
|
|
views.export_mega_participants,
|
|
|
|
name="export.mega.participants"),
|
|
|
|
url(r'^mega/orgas$',
|
|
|
|
views.export_mega_orgas,
|
|
|
|
name="export.mega.orgas"),
|
2017-02-09 21:04:32 +01:00
|
|
|
url(r'^mega/(?P<type>.+)$', views.export_mega_bytype),
|
2017-02-23 00:31:08 +01:00
|
|
|
url(r'^mega$',
|
|
|
|
views.export_mega,
|
|
|
|
name="export.mega"),
|
2017-02-09 21:04:32 +01:00
|
|
|
]
|
2016-11-06 15:39:14 +01:00
|
|
|
|
2017-02-09 21:04:32 +01:00
|
|
|
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'),
|
2017-02-12 04:24:33 +01:00
|
|
|
url(r'^demandes$',
|
|
|
|
buro_required(DemandeListView.as_view()),
|
2017-02-09 21:04:32 +01:00
|
|
|
name='petits-cours-demandes-list'),
|
2017-02-12 04:24:33 +01:00
|
|
|
url(r'^demandes/(?P<pk>\d+)$',
|
|
|
|
buro_required(DemandeDetailView.as_view()),
|
2017-02-09 21:04:32 +01:00
|
|
|
name='petits-cours-demande-details'),
|
|
|
|
url(r'^demandes/(?P<demande_id>\d+)/traitement$',
|
|
|
|
petits_cours_views.traitement,
|
|
|
|
name='petits-cours-demande-traitement'),
|
|
|
|
url(r'^demandes/(?P<demande_id>\d+)/retraitement$',
|
|
|
|
petits_cours_views.retraitement,
|
|
|
|
name='petits-cours-demande-retraitement'),
|
|
|
|
]
|
2016-07-18 18:46:48 +02:00
|
|
|
|
2017-02-09 21:04:32 +01:00
|
|
|
surveys_patterns = [
|
2017-02-23 00:31:08 +01:00
|
|
|
url(r'^(?P<survey_id>\d+)/status$',
|
|
|
|
views.survey_status,
|
|
|
|
name="survey.status"),
|
|
|
|
url(r'^(?P<survey_id>\d+)$',
|
|
|
|
views.survey,
|
|
|
|
name="survey"),
|
2017-02-09 21:04:32 +01:00
|
|
|
]
|
2016-07-09 21:19:37 +02:00
|
|
|
|
2017-02-09 21:04:32 +01:00
|
|
|
events_patterns = [
|
2017-02-23 00:31:08 +01:00
|
|
|
url(r'^(?P<event_id>\d+)$',
|
|
|
|
views.event,
|
|
|
|
name="event"),
|
|
|
|
url(r'^(?P<event_id>\d+)/status$',
|
|
|
|
views.event_status,
|
|
|
|
name="event.status"),
|
2016-09-12 22:08:39 +02:00
|
|
|
]
|
|
|
|
|
2017-02-09 21:04:32 +01:00
|
|
|
calendar_patterns = [
|
2017-02-23 00:31:08 +01:00
|
|
|
url(r'^subscription$',
|
|
|
|
views.calendar,
|
|
|
|
name="calendar"),
|
2017-02-09 21:04:32 +01:00
|
|
|
url(r'^(?P<token>[a-z0-9-]+)/calendar.ics$',
|
2017-02-23 00:31:08 +01:00
|
|
|
views.calendar_ics,
|
|
|
|
name="calendar.ics")
|
2017-02-09 21:04:32 +01:00
|
|
|
]
|