autowisp.browser_interface.core.walk_fs_view module

Class Inheritance Diagram

Inheritance diagram of View, ViewError, WalkFSView

Define WalkFSView allowing users to walk through the file system.

class autowisp.browser_interface.core.walk_fs_view.WalkFSView(**kwargs)[source]

Bases: View

Inheritance diagram of autowisp.browser_interface.core.walk_fs_view.WalkFSView

Base class allowing user to walk through the file system.

_add_fs_context(search_dir, filename_check, dirname_check, result)[source]

Add filesystem entries and breadcrumb navigation to result context.

Populates result with: - file_list: sorted list of filenames in search_dir matching

filename_check.

  • dir_list: sorted list of subdirectory names in search_dir matching dirname_check. On Windows with search_dir == “Computer”, lists available drive letters instead.

  • parent_dir_list: list of (path, display_name) tuples representing the breadcrumb trail from _root_dir down to search_dir, in top-to-bottom order.

_get_context(config, search_dir)[source]

Return the context required by the file system walk template.

cancel_url_name = None
get(request, dirname=None)[source]

Display the interface for selecting files.

template = 'core/walk_fs.html'
url_name = None