archivebox.config.viewsο
Module Contentsο
Functionsο
Group Binary rows by a URL-safe canonical name. |
|
Dataο
APIο
- 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._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.namecarrying an abspath rather than a short binary name (seeservices/binary_service.py). That used to leakname='/Users/.../bin/foo'rows into the DB, which then broke/admin/environment/binariesbecause 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]ο