Project

General

Profile

Download (1.12 KB) Statistics
| Branch: | Tag: | Revision:

calebasse / calebasse / personnes / urls.py @ 6c1bf4ad

1
from django.conf.urls import patterns, url, include
2
from calebasse.ressources.urls import ressource_patterns
3

    
4

    
5
user_patterns = patterns('calebasse.personnes.views',
6
    url(r'^$', 'user_listing'),
7
    url(r'^new/$', 'user_new'),
8
    url(r'^(?P<pk>\d+)/$', 'user_update'),
9
    url(r'^(?P<pk>\d+)/delete/$', 'user_delete'),
10
)
11

    
12

    
13
worker_patterns = patterns('calebasse.personnes.views',
14
    url(r'^$', 'worker_listing'),
15
    url(r'^new/$', 'worker_new'),
16
    url(r'^(?P<pk>\d+)/$', 'worker_update', name='worker_update'),
17
    url(r'^(?P<pk>\d+)/delete/$', 'worker_delete'),
18
    url(r'^(?P<pk>\d+)/holidays/$', 'worker_holidays_update'),
19
    url(r'^(?P<pk>\d+)/(?P<weekday>\d)/$', 'worker_schedule_update'),
20
)
21

    
22
holidays_patterns = patterns('calebasse.personnes.views',
23
    url(r'^$', 'holiday_listing'),
24
    url(r'^groupe/$', 'group_holiday_update'))
25

    
26
urlpatterns = patterns('calebasse.personnes.views',
27
    url(r'^$', 'homepage'),
28
    url(r'^acces/', include(user_patterns)),
29
    url(r'^gestion/', include(worker_patterns)),
30
    url(r'^conges/', include(holidays_patterns)),
31
    url(r'^(?P<model_name>[a-z-]*)/', include(ressource_patterns)),
32
    )
(7-7/8)