granicus_archiver.web.config¶
- class granicus_archiver.web.config.AppConfig(hostname: str = 'localhost', port: int = 8080, sockfile: ~pathlib._local.Path | None = None, serve_static: bool = True, read_only: bool = True, static_url: ~yarl.URL = URL('/'), use_s3: bool = False, s3_data_dir: ~pathlib._local.Path | None = None, nav_links: ~typing.Sequence[~granicus_archiver.web.types.NavLink] = (('home', 'Home', 'home', None), ('legistar', 'Legistar', 'rguid_legistar_items', None), ('clips', 'Clips', 'clip_list', None)), index_nav_link_name: str = 'home', site_name: str = 'Granicus Archive', hidden_clip_categories: ~typing.Sequence[~granicus_archiver.clips.model.Location] = <factory>, hidden_clip_list_filters: ~typing.Sequence[ListFilterField] = <factory>)[source]¶
Bases:
BaseConfigWeb app configuration
- Parameters:
- static_url: URL = URL('/')¶
Root URL to serve static files from
If
serve_staticisTrue, this should be"/". Otherwise, it should be the URL path to the static files.
Navigation links for the app
Name of the nav link in
nav_linksto use for the index page (home page)
List of clip categories to hide in the UI
List of clip list filters to hide in the UI
- save(filename: PathLike) None[source]¶
Save the configuration to a file
- Parameters:
filename (PathLike)
- Return type:
None