archivebox.config.views

Module Contents

Functions

is_superuser

format_parsed_datetime

get_live_config_url

get_environment_binary_url

get_installed_binary_change_url

render_binary_detail_description

obj_to_yaml

_binary_sort_key

get_db_binaries_by_name

Group Binary rows by a URL-safe canonical name.

binaries_list_view

binary_detail_view

worker_list_view

worker_detail_view

log_list_view

log_detail_view

Data

LIVE_CONFIG_BASE_URL

ENVIRONMENT_BINARIES_BASE_URL

INSTALLED_BINARIES_BASE_URL

API

archivebox.config.views.LIVE_CONFIG_BASE_URL[source]

β€˜/admin/environment/config/’

archivebox.config.views.ENVIRONMENT_BINARIES_BASE_URL[source]

β€˜/admin/environment/binaries/’

archivebox.config.views.INSTALLED_BINARIES_BASE_URL[source]

β€˜/admin/machine/binary/’

archivebox.config.views.is_superuser(request: django.http.HttpRequest) bool[source]
archivebox.config.views.format_parsed_datetime(value: object) str[source]
archivebox.config.views.get_live_config_url(key: str) str[source]
archivebox.config.views.get_environment_binary_url(name: str) str[source]
archivebox.config.views.get_installed_binary_change_url(name: str, binary: archivebox.machine.models.Binary | None) str | None[source]
archivebox.config.views.render_binary_detail_description(name: str, merged: dict[str, Any], db_binary: Any) str[source]
archivebox.config.views.obj_to_yaml(obj: Any, indent: int = 0) str[source]
archivebox.config.views._binary_sort_key(binary: archivebox.machine.models.Binary) tuple[int, int, int, Any][source]
archivebox.config.views.get_db_binaries_by_name() dict[str, archivebox.machine.models.Binary][source]

Group Binary rows by a URL-safe canonical name.

Hooks occasionally emit BinaryEvent.name carrying an abspath rather than a short binary name (see services/binary_service.py). That used to leak name='/Users/.../bin/foo' rows into the DB, which then broke /admin/environment/binaries because the admin URL regex is (?P<key>[^/]+). Canonicalize at the keying step so duplicates fold into the real binary and the admin link key stays slash-free regardless of legacy DB state.

archivebox.config.views.binaries_list_view(request: django.http.HttpRequest, **kwargs) admin_data_views.typing.TableContext[source]
archivebox.config.views.binary_detail_view(request: django.http.HttpRequest, key: str, **kwargs) admin_data_views.typing.ItemContext[source]
archivebox.config.views.worker_list_view(request: django.http.HttpRequest, **kwargs) admin_data_views.typing.TableContext[source]
archivebox.config.views.worker_detail_view(request: django.http.HttpRequest, key: str, **kwargs) admin_data_views.typing.ItemContext[source]
archivebox.config.views.log_list_view(request: django.http.HttpRequest, **kwargs) admin_data_views.typing.TableContext[source]
archivebox.config.views.log_detail_view(request: django.http.HttpRequest, key: str, **kwargs) admin_data_views.typing.ItemContext[source]