swh.web.browse.views.snapshot module

swh.web.browse.views.snapshot.get_snapshot_from_request(request: django.http.request.HttpRequest) str[source]
swh.web.browse.views.snapshot.snapshot_browse(request: django.http.request.HttpRequest, snapshot_id: str) django.http.response.HttpResponse[source]

Django view for browsing the content of a snapshot.

The url that points to it is GET /browse/snapshot/(snapshot_id)/

swh.web.browse.views.snapshot.snapshot_directory_browse(request: django.http.request.HttpRequest, snapshot_id: str) django.http.response.HttpResponse[source]

Django view for browsing the content of a directory collected in a snapshot.

The URL that points to it is GET /browse/snapshot/(snapshot_id)/directory/

swh.web.browse.views.snapshot.snapshot_directory_browse_legacy(request: django.http.request.HttpRequest, snapshot_id: str, path: Optional[str] = None) django.http.response.HttpResponse[source]

Django view for browsing the content of a directory collected in a snapshot.

The URL that points to it is GET /browse/snapshot/(snapshot_id)/directory/(path)/

swh.web.browse.views.snapshot.snapshot_content_browse(request: django.http.request.HttpRequest, snapshot_id: str) django.http.response.HttpResponse[source]

This route is deprecated; use http:get:/browse/content instead

Django view that produces an HTML display of a content collected in a snapshot.

The url that points to it is GET /browse/snapshot/(snapshot_id)/content/

swh.web.browse.views.snapshot.snapshot_content_browse_legacy(request: django.http.request.HttpRequest, snapshot_id: str, path: str) django.http.response.HttpResponse[source]

This route is deprecated; use http:get:/browse/content instead

Django view that produces an HTML display of a content collected in a snapshot.

The url that points to it is GET /browse/snapshot/(snapshot_id)/content/(path)/

swh.web.browse.views.snapshot.snapshot_log_browse(request: django.http.request.HttpRequest, snapshot_id: Optional[str] = None) django.http.response.HttpResponse[source]

Django view that produces an HTML display of revisions history (aka the commit log) collected in a snapshot.

The URLs that point to it are GET /browse/snapshot/(snapshot_id)/log/ and GET /browse/snapshot/log/

swh.web.browse.views.snapshot.snapshot_branches_browse(request: django.http.request.HttpRequest, snapshot_id: Optional[str] = None) django.http.response.HttpResponse[source]

Django view that produces an HTML display of the list of branches collected in a snapshot.

The URLs that point to it are GET /browse/snapshot/(snapshot_id)/branches/ and GET /browse/snapshot/branches/

swh.web.browse.views.snapshot.snapshot_releases_browse(request: django.http.request.HttpRequest, snapshot_id: Optional[str] = None) django.http.response.HttpResponse[source]

Django view that produces an HTML display of the list of releases collected in a snapshot.

The URLs that point to it are GET /browse/snapshot/(snapshot_id)/releases/ GET /browse/snapshot/releases/