archivebox.core.views

Module Contents

Classes

HomepageView

SnapshotView

PublicIndexView

AddView

HealthCheckView

A Django view that renders plain text “OK” for service discovery tools

Functions

find_config_section

find_config_default

find_config_type

key_is_safe

live_config_list_view

live_config_value_view

API

class archivebox.core.views.HomepageView[source]

Bases: django.views.View

get(request)[source]
class archivebox.core.views.SnapshotView[source]

Bases: django.views.View

static render_live_index(request, snapshot)[source]
get(request, path)[source]
class archivebox.core.views.PublicIndexView[source]

Bases: django.views.generic.list.ListView

template_name[source]

‘public_index.html’

model[source]

None

paginate_by[source]

None

ordering[source]

[‘-bookmarked_at’, ‘-created_at’]

get_context_data(**kwargs)[source]
get_queryset(**kwargs)[source]
get(*args, **kwargs)[source]
class archivebox.core.views.AddView[source]

Bases: django.contrib.auth.mixins.UserPassesTestMixin, django.views.generic.FormView

template_name[source]

‘add.html’

form_class[source]

None

get_initial()[source]

Prefill the AddLinkForm with the ‘url’ GET parameter

test_func()[source]
get_context_data(**kwargs)[source]
form_valid(form)[source]
class archivebox.core.views.HealthCheckView[source]

Bases: django.views.View

A Django view that renders plain text “OK” for service discovery tools

get(request)[source]

Handle a GET request

archivebox.core.views.find_config_section(key: str) str[source]
archivebox.core.views.find_config_default(key: str) str[source]
archivebox.core.views.find_config_type(key: str) str[source]
archivebox.core.views.key_is_safe(key: str) bool[source]
archivebox.core.views.live_config_list_view(request: django.http.HttpRequest, **kwargs) admin_data_views.typing.TableContext[source]
archivebox.core.views.live_config_value_view(request: django.http.HttpRequest, key: str, **kwargs) admin_data_views.typing.ItemContext[source]