archivebox.core.views
Module Contents
Classes
A Django view that renders plain text “OK” for service discovery tools |
Functions
Data
API
- archivebox.core.views.__package__
‘archivebox.core’
- class archivebox.core.views.SnapshotView
Bases:
django.views.View
- static render_live_index(request, snapshot)
- get(request, path)
- class archivebox.core.views.PublicIndexView
Bases:
django.views.generic.list.ListView
- template_name
‘public_index.html’
- model
None
- paginate_by
None
- ordering
[‘-bookmarked_at’, ‘-created_at’]
- get_context_data(**kwargs)
- get_queryset(**kwargs)
- get(*args, **kwargs)
- class archivebox.core.views.AddView
Bases:
django.contrib.auth.mixins.UserPassesTestMixin
,django.views.generic.FormView
- template_name
‘add.html’
- form_class
None
- get_initial()
Prefill the AddLinkForm with the ‘url’ GET parameter
- test_func()
- get_context_data(**kwargs)
- form_valid(form)
- class archivebox.core.views.HealthCheckView
Bases:
django.views.View
A Django view that renders plain text “OK” for service discovery tools
- get(request)
Handle a GET request
- archivebox.core.views.find_config_section(key: str) str
- archivebox.core.views.find_config_default(key: str) str
- archivebox.core.views.find_config_type(key: str) str
- archivebox.core.views.key_is_safe(key: str) bool
- archivebox.core.views.live_config_list_view(request: django.http.HttpRequest, **kwargs) admin_data_views.typing.TableContext
- archivebox.core.views.live_config_value_view(request: django.http.HttpRequest, key: str, **kwargs) admin_data_views.typing.ItemContext