Changeset View
Changeset View
Standalone View
Standalone View
swh/web/browse/views/content.py
Show All 16 Lines | |||||
from swh.model.identifiers import CONTENT | from swh.model.identifiers import CONTENT | ||||
from swh.web.browse.browseurls import browse_route | from swh.web.browse.browseurls import browse_route | ||||
from swh.web.browse.snapshot_context import get_snapshot_context | from swh.web.browse.snapshot_context import get_snapshot_context | ||||
from swh.web.browse.utils import ( | from swh.web.browse.utils import ( | ||||
request_content, | request_content, | ||||
prepare_content_for_display, | prepare_content_for_display, | ||||
content_display_max_size, | content_display_max_size, | ||||
get_swh_persistent_ids, | |||||
gen_link, | gen_link, | ||||
gen_directory_link, | gen_directory_link, | ||||
) | ) | ||||
from swh.web.common import query, service, highlightjs | from swh.web.common import query, service, highlightjs | ||||
from swh.web.common.exc import NotFoundExc, handle_view_exception | from swh.web.common.exc import NotFoundExc, handle_view_exception | ||||
from swh.web.common.identifiers import get_swh_persistent_ids | |||||
from swh.web.common.typing import ContentMetadata | from swh.web.common.typing import ContentMetadata | ||||
from swh.web.common.utils import reverse, gen_path_info, swh_object_icons | from swh.web.common.utils import reverse, gen_path_info, swh_object_icons | ||||
@browse_route( | @browse_route( | ||||
r"content/(?P<query_string>[0-9a-z_:]*[0-9a-f]+.)/raw/", | r"content/(?P<query_string>[0-9a-z_:]*[0-9a-f]+.)/raw/", | ||||
view_name="browse-content-raw", | view_name="browse-content-raw", | ||||
checksum_args=["query_string"], | checksum_args=["query_string"], | ||||
▲ Show 20 Lines • Show All 333 Lines • Show Last 20 Lines |