Commit 6356baa5 authored by Samuel GAIST's avatar Samuel GAIST
parent b4eb2cfc
......@@ -26,8 +26,11 @@
###############################################################################
from django.conf.urls import url
from . import views
app_name = "accounts"
urlpatterns = [
url(r"^settings/$", views.account_settings, name="settings"),
url(
......
......@@ -26,73 +26,37 @@
###############################################################################
from django.conf.urls import url
from . import views
urlpatterns = [
url(
r'^new/$',
views.create,
name='new',
),
url(
r'^update/(?P<name>[-\w]+)/$',
views.create,
name='new-version',
),
url(
r'^$',
views.public_ls,
name='public-list',
),
from . import views
url(
r'^(?P<author_name>\w+)/$',
views.ls,
name='list',
),
app_name = "algorithms"
urlpatterns = [
url(r"^new/$", views.create, name="new",),
url(r"^update/(?P<name>[-\w]+)/$", views.create, name="new-version",),
url(r"^$", views.public_ls, name="public-list",),
url(r"^(?P<author_name>\w+)/$", views.ls, name="list",),
url(
r'^fork/(?P<author>\w+)/(?P<name>[-\w]+)/(?P<version>\d+)/$',
r"^fork/(?P<author>\w+)/(?P<name>[-\w]+)/(?P<version>\d+)/$",
views.fork,
name='fork',
name="fork",
),
url(
r'^edit/(?P<author>\w+)/(?P<name>[-\w]+)/(?P<version>\d+)/$',
r"^edit/(?P<author>\w+)/(?P<name>[-\w]+)/(?P<version>\d+)/$",
views.edit,
name='edit',
name="edit",
),
url(
r'^diff/(?P<author1>\w+)/(?P<name1>[-\w]+)/(?P<version1>\d+)/(?P<author2>\w+)/(?P<name2>[-\w]+)/(?P<version2>\d+)/$',
r"^diff/(?P<author1>\w+)/(?P<name1>[-\w]+)/(?P<version1>\d+)/(?P<author2>\w+)/(?P<name2>[-\w]+)/(?P<version2>\d+)/$",
views.diff,
name='diff',
name="diff",
),
url(
r'^(?P<author>\w+)/(?P<name>[-\w]+)/$',
views.view,
name='view-latest',
),
url(r"^(?P<author>\w+)/(?P<name>[-\w]+)/$", views.view, name="view-latest",),
url(
r'^(?P<author>\w+)/(?P<name>[-\w]+)/(?P<version>\d+)/$',
r"^(?P<author>\w+)/(?P<name>[-\w]+)/(?P<version>\d+)/$",
views.view,
name='view',
name="view",
),
url(
r'^$',
views.public_ls,
name='public-list',
),
url(
r'^(?P<author_name>\w+)/$',
views.ls,
name='list',
),
url(r"^$", views.public_ls, name="public-list",),
url(r"^(?P<author_name>\w+)/$", views.ls, name="list",),
]
......@@ -26,26 +26,13 @@
###############################################################################
from django.conf.urls import url
from . import views
urlpatterns = [
url(
r'^$',
views.public_ls,
name='public-list',
),
url(
r'^(?P<number>\d+)/$',
views.view,
name='view',
),
from . import views
url(
r'^(?P<author_name>\w+)/$',
views.ls,
name='list',
),
app_name = "attestations"
urlpatterns = [
url(r"^$", views.public_ls, name="public-list",),
url(r"^(?P<number>\d+)/$", views.view, name="view",),
url(r"^(?P<author_name>\w+)/$", views.ls, name="list",),
]
......@@ -26,8 +26,11 @@
###############################################################################
from django.conf.urls import url
from . import views
app_name = "backend"
urlpatterns = [
url(r"^scheduler/$", views.scheduler, name="scheduler",),
url(
......
......@@ -26,26 +26,13 @@
###############################################################################
from django.conf.urls import url
from . import views
urlpatterns = [
url(
r'^$',
views.ls,
name='list',
),
url(
r'^(?P<name>[-\w]+)/(?P<version>\d+)/$',
views.view,
name='view'
),
from . import views
url(
r'^(?P<name>[-\w]+)/$',
views.view,
name='view-latest',
),
app_name = "databases"
urlpatterns = [
url(r"^$", views.ls, name="list",),
url(r"^(?P<name>[-\w]+)/(?P<version>\d+)/$", views.view, name="view"),
url(r"^(?P<name>[-\w]+)/$", views.view, name="view-latest",),
]
......@@ -26,61 +26,35 @@
###############################################################################
from django.conf.urls import url
from . import views
app_name = "dataformats"
urlpatterns = [
url(r"^new/$", views.create, name="new",),
url(r"^update/(?P<name>[-\w]+)/$", views.create, name="new-version",),
url(r"^$", views.public_ls, name="public-list",),
url(r"^(?P<author_name>\w+)/$", views.ls, name="list",),
url(
r'^new/$',
views.create,
name='new',
),
url(
r'^update/(?P<name>[-\w]+)/$',
views.create,
name='new-version',
),
url(
r'^$',
views.public_ls,
name='public-list',
),
url(
r'^(?P<author_name>\w+)/$',
views.ls,
name='list',
),
url(
r'^fork/(?P<author>\w+)/(?P<name>[-\w]+)/(?P<version>\d+)/$',
r"^fork/(?P<author>\w+)/(?P<name>[-\w]+)/(?P<version>\d+)/$",
views.fork,
name='fork',
name="fork",
),
url(
r'^edit/(?P<author>\w+)/(?P<name>[-\w]+)/(?P<version>\d+)/$',
r"^edit/(?P<author>\w+)/(?P<name>[-\w]+)/(?P<version>\d+)/$",
views.edit,
name='edit',
name="edit",
),
url(
r'^diff/(?P<author1>\w+)/(?P<name1>[-\w]+)/(?P<version1>\d+)/(?P<author2>\w+)/(?P<name2>[-\w]+)/(?P<version2>\d+)/$',
r"^diff/(?P<author1>\w+)/(?P<name1>[-\w]+)/(?P<version1>\d+)/(?P<author2>\w+)/(?P<name2>[-\w]+)/(?P<version2>\d+)/$",
views.diff,
name='diff',
name="diff",
),
url(
r'^(?P<author>\w+)/(?P<name>[-\w]+)/(?P<version>\d+)/$',
views.view,
name='view',
),
url(
r'^(?P<author>\w+)/(?P<name>[-\w]+)/$',
r"^(?P<author>\w+)/(?P<name>[-\w]+)/(?P<version>\d+)/$",
views.view,
name='view-latest',
name="view",
),
url(r"^(?P<author>\w+)/(?P<name>[-\w]+)/$", views.view, name="view-latest",),
]
......@@ -26,45 +26,32 @@
###############################################################################
from django.conf.urls import url
from . import views
app_name = "experiments"
urlpatterns = [
url(
r'^setup/(?P<toolchain_author_name>[-\w]+)/(?P<toolchain_name>[-\w]+)/(?P<toolchain_version>\d+)/$',
r"^setup/(?P<toolchain_author_name>[-\w]+)/(?P<toolchain_name>[-\w]+)/(?P<toolchain_version>\d+)/$",
views.new_from_toolchain,
name='new-from-toolchain',
name="new-from-toolchain",
),
url(
r'^reset/(?P<toolchain_author_name>[-\w]+)/(?P<toolchain_name>[-\w]+)/(?P<toolchain_version>\d+)/(?P<name>[-\w]+)/$',
r"^reset/(?P<toolchain_author_name>[-\w]+)/(?P<toolchain_name>[-\w]+)/(?P<toolchain_version>\d+)/(?P<name>[-\w]+)/$",
views.reset,
name='reset',
name="reset",
),
url(
r'^fork/(?P<author_name>\w+)/(?P<toolchain_author_name>[-\w]+)/(?P<toolchain_name>[-\w]+)/(?P<toolchain_version>\d+)/(?P<name>[-\w]+)/$',
r"^fork/(?P<author_name>\w+)/(?P<toolchain_author_name>[-\w]+)/(?P<toolchain_name>[-\w]+)/(?P<toolchain_version>\d+)/(?P<name>[-\w]+)/$",
views.fork,
name='fork',
name="fork",
),
url(
r'^(?P<author_name>\w+)/(?P<toolchain_author_name>[-\w]+)/(?P<toolchain_name>[-\w]+)/(?P<toolchain_version>\d+)/(?P<name>[-\w]+)/$',
r"^(?P<author_name>\w+)/(?P<toolchain_author_name>[-\w]+)/(?P<toolchain_name>[-\w]+)/(?P<toolchain_version>\d+)/(?P<name>[-\w]+)/$",
views.view,
name='view',
),
url(
r'^$',
views.public_ls,
name='public-list',
),
url(
r'^(?P<author_name>\w+)/$',
views.ls,
name='list',
name="view",
),
url(r"^$", views.public_ls, name="public-list",),
url(r"^(?P<author_name>\w+)/$", views.ls, name="list",),
]
......@@ -26,61 +26,35 @@
###############################################################################
from django.conf.urls import url
from . import views
urlpatterns = [
url(
r'^new/$',
views.create,
name='new',
),
url(
r'^update/(?P<name>[-\w]+)/$',
views.new_version,
name='new-version',
),
app_name = "libraries"
urlpatterns = [
url(r"^new/$", views.create, name="new",),
url(r"^update/(?P<name>[-\w]+)/$", views.new_version, name="new-version",),
url(
r'^fork/(?P<author_name>\w+)/(?P<name>[-\w]+)/(?P<version>\d+)/$',
r"^fork/(?P<author_name>\w+)/(?P<name>[-\w]+)/(?P<version>\d+)/$",
views.fork,
name='fork',
name="fork",
),
url(
r'^edit/(?P<author_name>\w+)/(?P<name>[-\w]+)/(?P<version>\d+)/$',
r"^edit/(?P<author_name>\w+)/(?P<name>[-\w]+)/(?P<version>\d+)/$",
views.edit,
name='edit',
name="edit",
),
url(
r'^diff/(?P<author1>\w+)/(?P<name1>[-\w]+)/(?P<version1>\d+)/(?P<author2>\w+)/(?P<name2>[-\w]+)/(?P<version2>\d+)/$',
r"^diff/(?P<author1>\w+)/(?P<name1>[-\w]+)/(?P<version1>\d+)/(?P<author2>\w+)/(?P<name2>[-\w]+)/(?P<version2>\d+)/$",
views.diff,
name='diff',
),
url(
r'^(?P<author_name>\w+)/(?P<name>[-\w]+)/(?P<version>\d+)/$',
views.view,
name='view',
name="diff",
),
url(
r'^(?P<author_name>\w+)/(?P<name>[-\w]+)/$',
r"^(?P<author_name>\w+)/(?P<name>[-\w]+)/(?P<version>\d+)/$",
views.view,
name='view-latest',
name="view",
),
url(
r'^$',
views.public_ls,
name='public-list',
),
url(
r'^(?P<author_name>\w+)/$',
views.ls,
name='list',
),
url(r"^(?P<author_name>\w+)/(?P<name>[-\w]+)/$", views.view, name="view-latest",),
url(r"^$", views.public_ls, name="public-list",),
url(r"^(?P<author_name>\w+)/$", views.ls, name="list",),
]
......@@ -26,26 +26,11 @@
###############################################################################
from django.conf.urls import url
from . import views
urlpatterns = [
url(
r'^tos/$',
views.terms_of_service,
name='terms-of-service',
),
url(
r'^disclaimer/$',
views.legal_disclaimer,
name='legal-disclaimer',
),
url(
r'^contact/$',
views.contact,
name='contact',
),
url(r"^tos/$", views.terms_of_service, name="terms-of-service",),
url(r"^disclaimer/$", views.legal_disclaimer, name="legal-disclaimer",),
url(r"^contact/$", views.contact, name="contact",),
]
......@@ -25,121 +25,92 @@
# #
###############################################################################
from django.conf.urls import include, url
from django.conf.urls import include
from django.conf.urls import url
from . import views
partial_patterns = [
app_name = "plotters"
url(r'^plotinfo/$',
views.PartialGroupView.as_view(
template_name='plotterparameters/partials/plotgraphicinfo.html',
),
name='plotinfo',
partial_patterns = (
[
url(
r"^plotinfo/$",
views.PartialGroupView.as_view(
template_name="plotterparameters/partials/plotgraphicinfo.html",
),
name="plotinfo",
),
url(r'^plotparamsinfo/$',
views.PartialGroupView.as_view(
template_name='plotterparameters/partials/plotparamsinfo.html',
url(
r"^plotparamsinfo/$",
views.PartialGroupView.as_view(
template_name="plotterparameters/partials/plotparamsinfo.html",
),
name="plotinfo",
),
name='plotinfo',
),
url(r'^(?P<template_name>[a-zA-Z_]+\.html)$',
views.PartialGroupView.as_view(),
url(
r"^(?P<template_name>[a-zA-Z_]+\.html)$", views.PartialGroupView.as_view(),
),
]
],
"partials",
)
urlpatterns = [
url(r'^partials/',
include(partial_patterns, namespace='partials'),
),
url(
r'^$',
views.list_plotters,
name='list',
),
url(r"^partials/", include(partial_patterns),),
url(r"^$", views.list_plotters, name="list",),
url(r"^plot/$", views.plot, name="plot",),
url(r"^plot_sample/$", views.plot_sample, name="plot_sample",),
url(
r'^plot/$',
views.plot,
name='plot',
),
url(
r'^plot_sample/$',
views.plot_sample,
name='plot_sample',
),
url(
r'^plot_sample_with_params/$',
r"^plot_sample_with_params/$",
views.plot_sample_with_params,
name='plot_sample_with_params',
name="plot_sample_with_params",
),
url(
r'^plotterparameter/(?P<author_name>\w+)/new_plotterparameter/$',
r"^plotterparameter/(?P<author_name>\w+)/new_plotterparameter/$",
views.create_plotterparameter,
name='new_plotterparameter',
name="new_plotterparameter",
),
url(
r'^plotterparameter/(?P<author_name>\w+)/(?P<plotterparameter_name>[-\w]+)/(?P<version>\d+)/new/$',
r"^plotterparameter/(?P<author_name>\w+)/(?P<plotterparameter_name>[-\w]+)/(?P<version>\d+)/new/$",
views.create_new_version,
name='new-version',
name="new-version",
),
url(
r'^plotterparameter/(?P<author_name>\w+)/(?P<plotterparameter_name>[-\w]+)/(?P<version>\d+)/fork/$',
r"^plotterparameter/(?P<author_name>\w+)/(?P<plotterparameter_name>[-\w]+)/(?P<version>\d+)/fork/$",
views.fork,
name='fork',
name="fork",
),
url(
r'^plotterparameter/diff/(?P<author1>\w+)/(?P<name1>[-\w]+)/(?P<version1>\d+)/(?P<author2>\w+)/(?P<name2>[-\w]+)/(?P<version2>\d+)/$',
r"^plotterparameter/diff/(?P<author1>\w+)/(?P<name1>[-\w]+)/(?P<version1>\d+)/(?P<author2>\w+)/(?P<name2>[-\w]+)/(?P<version2>\d+)/$",
views.diff,
name='diff',
name="diff",
),
url(
r'^(?P<author_name>\w+)/plotterparameter/$',
r"^(?P<author_name>\w+)/plotterparameter/$",
views.list_plotterparameters,
name='plotterparameter-list',
name="plotterparameter-list",
),
url(
r'^plotterparameter/$',
r"^plotterparameter/$",
views.list_plotterparameters_public,
name='plotterparameter-public-list',
name="plotterparameter-public-list",
),
url(
r'^plotterparameter/(?P<author_name>\w+)/(?P<plotterparameter_name>[-\w]+)/(?P<version>\d+)/$',
r"^plotterparameter/(?P<author_name>\w+)/(?P<plotterparameter_name>[-\w]+)/(?P<version>\d+)/$",
views.plotterparameter_for_author,
name='plotterparameter-author-view',
name="plotterparameter-author-view",
),
url(
r'^(?P<author>\w+)/(?P<name>[-\w]+)/(?P<version>\d+)/$',
r"^(?P<author>\w+)/(?P<name>[-\w]+)/(?P<version>\d+)/$",
views.view,
name='view',
name="view",
),
url(
r'^plotterparameter/(?P<author>\w+)/(?P<name>[-\w]+)/$',
r"^plotterparameter/(?P<author>\w+)/(?P<name>[-\w]+)/$",
views.plotterparameter_latest,
name='plotterparameter-view-latest',
name="plotterparameter-view-latest",
),
url(
r'^(?P<author>\w+)/(?P<name>[-\w]+)/$',
views.view,
name='plotter-view-latest',
r"^(?P<author>\w+)/(?P<name>[-\w]+)/$", views.view, name="plotter-view-latest",
),
]
......@@ -25,43 +25,24 @@
# #
###############################################################################
from django.conf.urls import include, url
from django.conf.urls import url
from . import views
app_name = "reports"
partial_patterns = [
url(r'^(?P<template_name>[a-zA-Z_]+\.html)$',
views.PartialGroupView.as_view(),
),
url(r"^(?P<template_name>[a-zA-Z_]+\.html)$", views.PartialGroupView.as_view(),),
]
urlpatterns = [
url(
r'^$',
views.public_ls,
name='public-list',
),
url(r"^$", views.public_ls, name="public-list",),
url(r"^(?P<number>\d+)/$", views.by_number, name="view",),
url(r"^(?P<author_name>\w+)/$", views.ls, name="list",),
url(
r'^(?P<number>\d+)/$',
views.by_number,
name='view',
),
url(
r'^(?P<author_name>\w+)/$',
views.ls,
name='list',
),
url(
r'^(?P<author_name>\w+)/(?P<report_name>[-\w]+)/$',
r"^(?P<author_name>\w+)/(?P<report_name>[-\w]+)/$",
views.for_author,
name='author-view',
name="author-view",
),
]
......@@ -29,36 +29,16 @@ from django.conf.urls import url
from . import views
urlpatterns = [