diff --git a/ren_browser/pages/page_request.py b/ren_browser/pages/page_request.py index 6f2bc1f..07e4b2a 100644 --- a/ren_browser/pages/page_request.py +++ b/ren_browser/pages/page_request.py @@ -29,7 +29,8 @@ class PageFetcher: """Initialize the page fetcher and Reticulum connection.""" # RNS should already be initialized by main app - def fetch_page(self, req: PageRequest) -> str: + @staticmethod + def fetch_page(req: PageRequest) -> str: """Download page content for the given PageRequest. Args: diff --git a/ren_browser/storage/storage.py b/ren_browser/storage/storage.py index 7a4e13a..a9b1456 100644 --- a/ren_browser/storage/storage.py +++ b/ren_browser/storage/storage.py @@ -65,7 +65,8 @@ class StorageManager: """Get the path to the main configuration file.""" return self._storage_dir / "config" - def get_reticulum_config_path(self) -> pathlib.Path: + @staticmethod + def get_reticulum_config_path() -> pathlib.Path: """Get the path to the Reticulum configuration directory.""" # Check for global override from app try: @@ -229,7 +230,8 @@ class StorageManager: "has_client_storage": self.page and hasattr(self.page, "client_storage"), } - def _is_writable(self, path: pathlib.Path) -> bool: + @staticmethod + def _is_writable(path: pathlib.Path) -> bool: """Check if a directory is writable.""" try: test_file = path / ".write_test"