Changeset View
Changeset View
Standalone View
Standalone View
swh/web/browse/views/directory.py
Show All 11 Lines | |||||
from swh.model.identifiers import DIRECTORY | from swh.model.identifiers import DIRECTORY | ||||
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 ( | ||||
get_directory_entries, | get_directory_entries, | ||||
get_readme_to_display, | get_readme_to_display, | ||||
get_swh_persistent_ids, | |||||
gen_link, | gen_link, | ||||
) | ) | ||||
from swh.web.common import service | from swh.web.common import service | ||||
from swh.web.common.exc import handle_view_exception, NotFoundExc | from swh.web.common.exc import handle_view_exception, NotFoundExc | ||||
from swh.web.common.identifiers import get_swh_persistent_ids | |||||
from swh.web.common.typing import DirectoryMetadata | from swh.web.common.typing import DirectoryMetadata | ||||
from swh.web.common.utils import reverse, gen_path_info | from swh.web.common.utils import reverse, gen_path_info | ||||
def _directory_browse(request, sha1_git, path=None): | def _directory_browse(request, sha1_git, path=None): | ||||
root_sha1_git = sha1_git | root_sha1_git = sha1_git | ||||
try: | try: | ||||
if path: | if path: | ||||
▲ Show 20 Lines • Show All 205 Lines • Show Last 20 Lines |