Ejemplo n.º 1
0
        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+)$',
        ContactDelete.as_view(),
        name='contact_delete'),
    url(r'^contact/list/', ContactList.as_view(), name='contact_list'),
    url(r'^$', DatasetList.as_view(), name='dataset_list'),
)
Ejemplo n.º 2
0
     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(),
Ejemplo n.º 3
0
 def test_reference_paper_update(self):
     found = resolve('/dataset/reference/edit/' + \
                     str(self.ref.id))
     self.assertEqual(found.func.__name__, ReferencePaperUpdate.as_view().__name__)