'a_id>\d+)', 'onadata.apps.main.views.download_media_data'), url(r'^(?P<username>[^/]+)/forms/(?P<id_string>[^/]+)/addservice$', 'onadata.apps.restservice.views.add_service', name="add_restservice"), url(r'^(?P<username>[^/]+)/forms/(?P<id_string>[^/]+)/delservice$', 'onadata.apps.restservice.views.delete_service', name="delete_restservice"), url(r'^(?P<username>[^/]+)/forms/(?P<id_string>[^/]+)/update$', 'onadata.apps.main.views.update_xform'), url(r'^(?P<username>[^/]+)/forms/(?P<id_string>[^/]+)/preview$', 'onadata.apps.main.views.enketo_preview'), # briefcase api urls url(r"^(?P<username>\w+)/view/submissionList$", BriefcaseViewset.as_view({ 'get': 'list', 'head': 'list' }), name='view-submission-list'), url(r"^(?P<username>\w+)/view/downloadSubmission$", BriefcaseViewset.as_view({ 'get': 'retrieve', 'head': 'retrieve' }), name='view-download-submission'), url(r"^(?P<username>\w+)/formUpload$", BriefcaseViewset.as_view({ 'post': 'create', 'head': 'create' }), name='form-upload'), url(r"^(?P<username>\w+)/upload$",
'id>\d+)', 'onadata.apps.main.views.delete_metadata'), url(r'^(?P<username>[^/]+)/forms/(?P<id_string>[^/]+)/formid-media/(?P<dat' 'a_id>\d+)', 'onadata.apps.main.views.download_media_data'), url(r'^(?P<username>[^/]+)/forms/(?P<id_string>[^/]+)/addservice$', 'onadata.apps.restservice.views.add_service', name="add_restservice"), url(r'^(?P<username>[^/]+)/forms/(?P<id_string>[^/]+)/delservice$', 'onadata.apps.restservice.views.delete_service', name="delete_restservice"), url(r'^(?P<username>[^/]+)/forms/(?P<id_string>[^/]+)/update$', 'onadata.apps.main.views.update_xform'), url(r'^(?P<username>[^/]+)/forms/(?P<id_string>[^/]+)/preview$', 'onadata.apps.main.views.enketo_preview'), # briefcase api urls url(r"^(?P<username>\w+)/view/submissionList$", BriefcaseViewset.as_view({'get': 'list', 'head': 'list'}), name='view-submission-list'), url(r"^(?P<username>\w+)/view/downloadSubmission$", BriefcaseViewset.as_view({'get': 'retrieve', 'head': 'retrieve'}), name='view-download-submission'), url(r"^(?P<username>\w+)/formUpload$", BriefcaseViewset.as_view({'post': 'create', 'head': 'create'}), name='form-upload'), url(r"^(?P<username>\w+)/upload$", BriefcaseViewset.as_view({'post': 'create', 'head': 'create'}), name='upload'), # exporting stuff url(r"^(?P<username>\w+)/forms/(?P<id_string>[^/]+)/data\.csv$", 'onadata.apps.viewer.views.data_export', name='csv_export', kwargs={'export_type': 'csv'}),