from django.conf.urls import patterns, url, include


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


worker_patterns = patterns('calebasse.personnes.views',
    url(r'^$', 'worker_listing'),
    url(r'^new/$', 'worker_new'),
    url(r'^(?P<pk>\d+)/$', 'worker_update'),
    url(r'^(?P<pk>\d+)/delete/$', 'worker_delete'),
    url(r'^(?P<pk>\d+)/holidays/$', 'worker_holidays_update'),
    url(r'^(?P<pk>\d+)/(?P<weekday>\w+)/$', 'worker_schedule_update'),
)


urlpatterns = patterns('calebasse.personnes.views',
    url(r'^$', 'homepage'),
    url(r'^acces/', include(user_patterns)),
    url(r'^gestion/', include(worker_patterns)),
    )

@@ -409,24 +409,46 @@
 pk%3E%5Cd+)/$', 
+'worker_update', name=
 'worker_upda

add a name to the worker_update view URL