From ae6cc40fb5bf520a0ba8c07f9085d23401fc968b Mon Sep 17 00:00:00 2001 From: Joscha Date: Fri, 26 Apr 2019 04:24:24 +0000 Subject: [PATCH] Rename ILIAS crawler to ilias To be consistent with the other classes' capitalisation of acronyms --- PFERD/ilias.py | 6 +++--- example_config.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PFERD/ilias.py b/PFERD/ilias.py index 84901f4..07ecc5b 100644 --- a/PFERD/ilias.py +++ b/PFERD/ilias.py @@ -9,10 +9,10 @@ import bs4 from .ilias_authenticators import ShibbolethAuthenticator from .organizer import Organizer -__all__ = ["ILIAS"] +__all__ = ["Ilias"] logger = logging.getLogger(__name__) -class ILIAS: +class Ilias: FILE_RE = re.compile(r"goto\.php\?target=(file_\d+_download)") DIR_RE = re.compile(r"ilias\.php\?ref_id=(\d+)") @@ -22,7 +22,7 @@ class ILIAS: self._auth = ShibbolethAuthenticator(base_path / cookie_file) def synchronize(self, ref_id, to_dir, transform=lambda x: x, filter=lambda x: True): - logger.info(f" Synchronizing ref_id {ref_id} to {to_dir} using the ILIAS synchronizer.") + logger.info(f" Synchronizing ref_id {ref_id} to {to_dir} using the Ilias synchronizer.") sync_path = pathlib.Path(self.base_path, to_dir) orga = Organizer(self.base_path, sync_path) diff --git a/example_config.py b/example_config.py index 0e70444..a269f14 100644 --- a/example_config.py +++ b/example_config.py @@ -295,7 +295,7 @@ def main(args): args = [arg.lower() for arg in args] ffm = PFERD.FfM(base_dir) - ilias = PFERD.ILIAS(base_dir, "cookie_jar") + ilias = PFERD.Ilias(base_dir, "cookie_jar") norbert = PFERD.Norbert(base_dir) # Semester 1