diff --git a/PFERD/organizer.py b/PFERD/organizer.py index c624d23..e5b2c10 100644 --- a/PFERD/organizer.py +++ b/PFERD/organizer.py @@ -15,6 +15,8 @@ from .utils import PrettyLogger, prompt_yes_no LOGGER = logging.getLogger(__name__) PRETTY = PrettyLogger(LOGGER) +# TODO prevent overwriting an already marked file + class FileAcceptException(Exception): """An exception while accepting a file.""" diff --git a/PFERD/pferd.py b/PFERD/pferd.py index 259e961..c8b6701 100644 --- a/PFERD/pferd.py +++ b/PFERD/pferd.py @@ -13,7 +13,7 @@ from .ilias import (IliasAuthenticator, IliasCrawler, IliasDirectoryFilter, from .location import Location from .organizer import Organizer from .tmp_dir import TmpDir -from .transform import Transform, Transformable, apply_transform +from .transform import TF, Transform, apply_transform from .utils import PrettyLogger # TODO save known-good cookies as soon as possible @@ -41,7 +41,8 @@ class Pferd(Location): self._tmp_dir = TmpDir(self.resolve(tmp_dir)) self._test_run = test_run - def _print_transformables(self, transformables: List[Transformable]) -> None: + @staticmethod + def _print_transformables(transformables: List[TF]) -> None: LOGGER.info("") LOGGER.info("Results of the test run:") for transformable in transformables: