Exemplo n.º 1
0
     name='dataset_delete'),
 url(r'^featured/$',
     FeaturedDatasetEdit.as_view(),
     name='featureddataset_edit'),
 url(r'^featured/delete/(?P<pk>\d+)$',
     FeaturedDatasetDelete.as_view(),
     name='featureddataset_delete'),
 url(r'^user_data_request/new/$',
     UserDataRequestCreate.as_view(),
     name='user_data_request'),
 url(r'^user/new/(?P<token>.*)/$',
     UserDatasetCreate.as_view(),
     name='user_create_dataset'),
 url(r'^user/(?P<token>.*)/$', UserDataset.as_view(), name='user_dataset'),
 url(r'^reference/$',
     ReferencePaperList.as_view(),
     name='reference_paper_list'),
 url(r'^reference/new/$',
     ReferencePaperCreate.as_view(),
     name='reference_paper_create'),
 url(r'^reference/edit/(?P<pk>\d+)$',
     ReferencePaperUpdate.as_view(),
     name='reference_paper_update'),
 url(r'^reference/delete/(?P<pk>\d+)$',
     ReferencePaperDelete.as_view(),
     name='reference_paper_delete'),
 url(r'^contact/edit/(?P<pk>\d+)$',
     ContactUpdate.as_view(),
     name='contact_update'),
 url(r'^contact/new/', ContactCreate.as_view(), name='contact_create'),
 url(r'^contact/delete/(?P<pk>\d+)$',
Exemplo n.º 2
0
     UserDataRequestCreate.as_view(),
     name='user_data_request'
 ),
 url(
     r'^user/new/(?P<token>.*)/$',
     UserDatasetCreate.as_view(),
     name='user_create_dataset'
 ),
 url(
     r'^user/(?P<token>.*)/$',
     UserDataset.as_view(),
     name='user_dataset'
 ),
 url(
     r'^reference/$',
     ReferencePaperList.as_view(),
     name='reference_paper_list'
 ),
 url(
     r'^reference/new/$',
     ReferencePaperCreate.as_view(),
     name='reference_paper_create'
 ),
 url(
     r'^reference/edit/(?P<pk>\d+)$',
     ReferencePaperUpdate.as_view(),
     name='reference_paper_update'
 ),
 url(
     r'^reference/delete/(?P<pk>\d+)$',
     ReferencePaperDelete.as_view(),
Exemplo n.º 3
0
 def test_reference_paper_list(self):
     found = resolve('/dataset/reference/')
     self.assertEqual(found.func.__name__, ReferencePaperList.as_view().__name__)