Esempio n. 1
0
        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+)$',
        ContactDelete.as_view(),
        name='contact_delete'),
    url(r'^contact/list/', ContactList.as_view(), name='contact_list'),
    url(r'^$', DatasetList.as_view(), name='dataset_list'),
)

urlpatterns += patterns(
    '',
    url(r'^api/$', DatasetAPIList.as_view(), name='dataset_api_list'),
Esempio n. 2
0
     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+)$',
     ContactDelete.as_view(),
Esempio n. 3
0
 def test_reference_paper_delete(self):
     found = resolve('/dataset/reference/delete/' + \
                     str(self.ref.id))
     self.assertEqual(found.func.__name__, ReferencePaperDelete.as_view().__name__)