From 8b76ebb3efb5cf674b6ffa024dc65f4e389fdf88 Mon Sep 17 00:00:00 2001 From: I-Al-Istannen Date: Sun, 16 May 2021 13:28:06 +0200 Subject: [PATCH] Rename IliasCrawler to KitIliasCrawler --- PFERD/crawlers/__init__.py | 6 +++--- PFERD/crawlers/ilias.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/PFERD/crawlers/__init__.py b/PFERD/crawlers/__init__.py index 0ae2ca3..41733cb 100644 --- a/PFERD/crawlers/__init__.py +++ b/PFERD/crawlers/__init__.py @@ -5,7 +5,7 @@ from ..authenticator import Authenticator from ..conductor import TerminalConductor from ..config import Config from ..crawler import Crawler -from .ilias import IliasCrawler, IliasCrawlerSection +from .ilias import KitIliasCrawler, KitIliasCrawlerSection from .local import LocalCrawler, LocalCrawlerSection CrawlerConstructor = Callable[[ @@ -19,6 +19,6 @@ CrawlerConstructor = Callable[[ CRAWLERS: Dict[str, CrawlerConstructor] = { "local": lambda n, s, c, t, a: LocalCrawler(n, LocalCrawlerSection(s), c, t), - "ilias": lambda n, s, c, t, a: - IliasCrawler(n, IliasCrawlerSection(s), c, t, a), + "kit-ilias": lambda n, s, c, t, a: + KitIliasCrawler(n, KitIliasCrawlerSection(s), c, t, a), } diff --git a/PFERD/crawlers/ilias.py b/PFERD/crawlers/ilias.py index 00bb04b..edb48a8 100644 --- a/PFERD/crawlers/ilias.py +++ b/PFERD/crawlers/ilias.py @@ -23,7 +23,7 @@ from ..crawler import CrawlerSection, HttpCrawler, anoncritical, arepeat TargetType = Union[str, int] -class IliasCrawlerSection(CrawlerSection): +class KitIliasCrawlerSection(CrawlerSection): def target(self) -> TargetType: target = self.s.get("target") @@ -510,11 +510,11 @@ _DIRECTORY_PAGES: Set[IliasElementType] = set([ ]) -class IliasCrawler(HttpCrawler): +class KitIliasCrawler(HttpCrawler): def __init__( self, name: str, - section: IliasCrawlerSection, + section: KitIliasCrawlerSection, config: Config, conductor: TerminalConductor, authenticators: Dict[str, Authenticator]