Rename IliasCrawler to KitIliasCrawler

This commit is contained in:
I-Al-Istannen 2021-05-16 13:28:06 +02:00
parent 467ea3a37e
commit 8b76ebb3ef
2 changed files with 6 additions and 6 deletions

View File

@ -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),
}

View File

@ -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]