Projet

Général

Profil

« Précédent | Suivant » 

Révision 233fda5f

Ajouté par Mikaël Ates il y a plus de 9 ans

Test if cv2parser module is present.

Voir les différences:

calebasse/dossiers/urls.py
1 1
from django.conf.urls import patterns, url
2
from django.conf import settings
2 3

  
3 4
urlpatterns = patterns('calebasse.dossiers.views',
4 5
        url(r'^$', 'patientrecord_home'),
......
50 51
        url(r'^(?P<patientrecord_id>\d+)/protection/new$', 'new_protection'),
51 52
        url(r'^(?P<patientrecord_id>\d+)/protection/(?P<pk>\d+)/update$', 'update_protection'),
52 53
        url(r'^(?P<patientrecord_id>\d+)/protection/(?P<pk>\d+)/del$', 'delete_protection'),
53
        url(r'^(?P<patientrecord_id>\d+)/read-cv2$', 'read_cv2'),
54 54
        )
55

  
56
if settings.CV2PARSER:
57
    cv2_read_url = patterns('calebasse.dossiers.views',
58
            url(r'^(?P<patientrecord_id>\d+)/read-cv2$', 'read_cv2'),
59
            )
60
    urlpatterns += cv2_read_url

Formats disponibles : Unified diff