'onadata.apps.logger.views.download_spss_labels',
        name='download_spss_labels'),
    url(r'^(?P<username>\w+)/forms/(?P<form_id_string>[^/]+)/excel_analyser\.xlsx$',
        'onadata.apps.logger.views.download_excel_analyser',
        name='download_excel_analyser'),
    url(r"^(?P<username>\w+)/forms/(?P<id_string>[^/]+)/instance/$",
        'onadata.apps.viewer.views.instance'),
    url(r"^(?P<username>\w+)/forms/(?P<id_string>[^/]+)/pending_instance/$",
        'onadata.apps.approval.views.pending_instance'),
    #url(r"^(?P<username>\w+)/forms/(?P<id_string>[^/]+)/instance/email/$",
    #   'onadata.apps.viewer.views.instance_email'),

    # odk data urls
    url(r"^submission$",
        XFormSubmissionApi.as_view({
            'post': 'create',
            'head': 'create'
        }),
        name='submissions'),
    url(r"^(?P<username>\w+)/submission$",
        XFormSubmissionApi.as_view({
            'post': 'create',
            'head': 'create'
        }),
        name='submissions'),
    url(r"^(?P<username>\w+)/m/formList$",
        'onadata.apps.logger.views.formList'),
    url(r"^formList$", XFormListApi.as_view({'get': 'list'}),
        name='form-list'),
    url(r"^(?P<username>\w+)/formList$",
        XFormListApi.as_view({'get': 'list'}),
        name='form-list'),
示例#2
0
文件: urls.py 项目: kimetrica/kobocat
    url(r"^(?P<username>\w+)/exports/(?P<id_string>[^/]+)/(?P<export_type>\w+)"
        "/progress$", 'onadata.apps.viewer.views.export_progress'),
    url(r"^(?P<username>\w+)/exports/(?P<id_string>[^/]+)/(?P<export_type>\w+)"
        "/$", 'onadata.apps.viewer.views.export_list'),
    url(r"^(?P<username>\w+)/exports/(?P<id_string>[^/]+)/(?P<export_type>\w+)"
        "/(?P<filename>[^/]+)$",
        'onadata.apps.viewer.views.export_download'),
    url(r'^(?P<username>\w+)/forms/(?P<form_id_string>[^/]+)/spss_labels\.zip$',
        'onadata.apps.logger.views.download_spss_labels', name='download_spss_labels'),
    url(r'^(?P<username>\w+)/exports/', include('onadata.apps.export.urls')),

    url(r'^(?P<username>\w+)/reports/', include('onadata.apps.survey_report.urls')),

    # odk data urls
    url(r"^submission$",
        XFormSubmissionApi.as_view({'post': 'create', 'head': 'create'}),
        name='submissions'),
    url(r"^formList$",
        XFormListApi.as_view({'get': 'list'}), name='form-list'),
    url(r"^(?P<username>\w+)/formList$",
        XFormListApi.as_view({'get': 'list'}), name='form-list'),
    url(r"^(?P<username>\w+)/xformsManifest/(?P<pk>[\d+^/]+)$",
        XFormListApi.as_view({'get': 'manifest'}),
        name='manifest-url'),
    url(r"^xformsManifest/(?P<pk>[\d+^/]+)$",
        XFormListApi.as_view({'get': 'manifest'}),
        name='manifest-url'),
    url(r"^(?P<username>\w+)/xformsMedia/(?P<pk>[\d+^/]+)"
        "/(?P<metadata>[\d+^/.]+)$",
        XFormListApi.as_view({'get': 'media'}), name='xform-media'),
    url(r"^(?P<username>\w+)/xformsMedia/(?P<pk>[\d+^/]+)"