Ejemplo n.º 1
0
    DataDictionaryView,
    ExportDataDictionaryView,
    UploadDataDictionaryView,
    data_dictionary_json,
    generate_data_dictionary,
    update_case_property,
    update_case_property_description,
)
from corehq.apps.hqwebapp.decorators import waf_allow

urlpatterns = [
    url(r"^generate/$", generate_data_dictionary),
    url(r"^json/$", data_dictionary_json, name='data_dictionary_json'),
    url(r"^json/?(?P<case_type_name>\w+)/?$",
        data_dictionary_json,
        name='case_type_dictionary_json'),
    url(r"^update_case_property/$",
        update_case_property,
        name='update_case_property'),
    url(r"^update_case_property_description/$",
        update_case_property_description,
        name='update_property_description'),
    url(r"^export/$",
        ExportDataDictionaryView.as_view(),
        name=ExportDataDictionaryView.urlname),
    url(r"^$", DataDictionaryView.as_view(), name=DataDictionaryView.urlname),
    url(r"^import$",
        waf_allow('XSS_BODY')(UploadDataDictionaryView.as_view()),
        name=UploadDataDictionaryView.urlname),
]
Ejemplo n.º 2
0
from django.conf.urls import url
from corehq.apps.data_dictionary.views import (
    data_dictionary_json,
    generate_data_dictionary,
    update_case_property,
    DataDictionaryView,
)

urlpatterns = [
    url(r"^generate/$", generate_data_dictionary),
    url(r"^json/$", data_dictionary_json, name='data_dictionary_json'),
    url(r"^json/?(?P<case_type_name>\w+)/?$", data_dictionary_json, name='case_type_dictionary_json'),
    url(r"^update_case_property/$", update_case_property, name='update_case_property'),
    url(r"^$", DataDictionaryView.as_view(), name=DataDictionaryView.urlname)
]