Esempio n. 1
0
    url(r'^intervention/delete/(?P<pk>\d+)', 'delete_intervention'), #alias remove
#    url(r'^intervention/delete/(?P<pk>\d+)',
#         login_required(InterventionDelete.as_view())),
    url(r'^interventions/link/$', 'link_interventions', name='link_interventions'),

    # Factors:
    url(r'^factors/$', FactorList.as_view(), name='factors'),
    url(r'^factors/archive/$', ListView.as_view(queryset=Factor.objects.all(),
        template_name='lifespan/factors_archive.html', context_object_name='factors'),
        name='factors_archive'),
    url(r'^factor/(?P<pk>\d+)/$', FactorDetail.as_view(), name='factor'),
    url(r'^factor/add/$', 'add_factor', name='add_factor'),
    url(r'^factor/edit/(?P<pk>\d+)/$', 'edit_factor'),
    url(r'^factor/remove/(?P<pk>\d+)/$', 'remove_factor', name='remove_factor'),
    url(r'^factor/delete/(?P<pk>\d+)/$', FactorDelete.as_view(), name='delete-factor'),
    url(r'^factor/create/$', login_required(CreateFactor.as_view()), name='create-factor'),
    url(r'^factor/ontology/$', login_required(FactorOntology.as_view()), name='factor-ontology'),
    url(r'^factor/(?P<slug>.+)/$', FactorDetail.as_view(), name='factor'),

    # Variants:
    url(r'^variants/bulk_insert/$', VariantBulkInsert.as_view(), name='variant-bulk-insert'),
    url(r'^variants/browse/$', TemplateView.as_view(template_name='lifespan/genome_browser.html'), name='browse'),

    url(r'^variants/(?P<chromosome>.+)?/?(?P<output>output)?', csrf_exempt(VariantList.as_view()), name='variants'),

    url(r'^variants/(?P<chromosome>.+)?/?(?P<output>output)?', csrf_exempt(VariantList.as_view()), name='variants'),

   # url(r'^variants/(?P<chromosome>.+)?', VariantList.as_view(), name='variants'),
    url(r'^variant/issues/$', VariantIssues.as_view(), name='variant-issues'),
    url(r'^variance/(?P<name>.+)/$', VarianceDetail.as_view(), name='variant-detail'),
    url(r'^variant/(?P<pk>\d+)/$', VariantDetail.as_view(), name='variant'),
Esempio n. 2
0
    # Factors:
    url(r'^factors/$', FactorList.as_view(), name='factors'),
    url(r'^factors/archive/$',
        ListView.as_view(queryset=Factor.objects.all(),
                         template_name='lifespan/factors_archive.html',
                         context_object_name='factors'),
        name='factors_archive'),
    url(r'^factor/(?P<pk>\d+)/$', FactorDetail.as_view(), name='factor'),
    url(r'^factor/add/$', 'add_factor', name='add_factor'),
    url(r'^factor/edit/(?P<pk>\d+)/$', 'edit_factor'),
    url(r'^factor/remove/(?P<pk>\d+)/$', 'remove_factor',
        name='remove_factor'),
    url(r'^factor/delete/(?P<pk>\d+)/$',
        FactorDelete.as_view(),
        name='delete-factor'),
    url(r'^factor/create/$', CreateFactor.as_view(), name='create-factor'),
    url(r'^factor/(?P<slug>.+)/$', FactorDetail.as_view(), name='factor'),

    # Strains;
    url(r'^strains/$',
        ListView.as_view(queryset=Strain.objects.all(),
                         template_name='lifespan/strains.html',
                         context_object_name="strains"),
        name='strains'),
    url(r'^strain/(?P<pk>\d+)',
        DetailView.as_view(model=Strain,
                           template_name='lifespan/strain.html')),
    url(r'^strain/create/$', CreateStrain.as_view(), name='create-strain'),
    url(r'^strain/update/(?P<pk>\d+)',
        login_required(UpdateStrain.as_view()),
        name='update-strain'),
Esempio n. 3
0
    url(r'^intervention/delete/(?P<pk>\d+)', 'delete_intervention'), #alias remove
#    url(r'^intervention/delete/(?P<pk>\d+)',
#         login_required(InterventionDelete.as_view())),
    url(r'^interventions/link/$', 'link_interventions', name='link_interventions'),

    # Factors:
    url(r'^factors/$', FactorList.as_view(), name='factors'),
    url(r'^factors/archive/$', ListView.as_view(queryset=Factor.objects.all(),
        template_name='lifespan/factors_archive.html', context_object_name='factors'),
        name='factors_archive'),
    url(r'^factor/(?P<pk>\d+)/$', FactorDetail.as_view(), name='factor'),
    url(r'^factor/add/$', 'add_factor', name='add_factor'),
    url(r'^factor/edit/(?P<pk>\d+)/$', 'edit_factor'),
    url(r'^factor/remove/(?P<pk>\d+)/$', 'remove_factor', name='remove_factor'),
    url(r'^factor/delete/(?P<pk>\d+)/$', FactorDelete.as_view(), name='delete-factor'),
    url(r'^factor/create/$', CreateFactor.as_view(), name='create-factor'),
    url(r'^factor/(?P<slug>.+)/$', FactorDetail.as_view(), name='factor'),

    # Strains;
    url(r'^strains/$', ListView.as_view(queryset=Strain.objects.all(),
        template_name='lifespan/strains.html', context_object_name="strains" ),
        name='strains'),
    url(r'^strain/(?P<pk>\d+)', DetailView.as_view(model=Strain,
        template_name='lifespan/strain.html')),
    url(r'^strain/create/$',CreateStrain.as_view(), name='create-strain'),
    url(r'^strain/update/(?P<pk>\d+)', login_required(UpdateStrain.as_view()), name='update-strain'),

    # Assays:
    url(r'^assays/$', ListView.as_view(queryset=Assay.objects.all(),
        template_name='lifespan/assays.html', context_object_name="assays"),
        name='assays'),