mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-13 07:55:05 +02:00
Add warning about event-loop in ILIASCrawler
This commit is contained in:
parent
3eab236b99
commit
c800d307db
2 changed files with 7 additions and 3 deletions
|
|
@ -130,6 +130,11 @@ class IliasCrawler:
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
Create a new ILIAS crawler.
|
Create a new ILIAS crawler.
|
||||||
|
Warning: This will create syncronization primitives
|
||||||
|
that are tied to the currently running event
|
||||||
|
loop. This means you cant use asyncio.run but
|
||||||
|
will need to use run_until_completion when using
|
||||||
|
methodes.
|
||||||
"""
|
"""
|
||||||
self._base_url = base_url
|
self._base_url = base_url
|
||||||
self._client = client
|
self._client = client
|
||||||
|
|
|
||||||
|
|
@ -239,7 +239,6 @@ class Pferd(Location):
|
||||||
)
|
)
|
||||||
self._ilias_targets.append(target)
|
self._ilias_targets.append(target)
|
||||||
|
|
||||||
|
|
||||||
def add_ilias_folder(
|
def add_ilias_folder(
|
||||||
self,
|
self,
|
||||||
ilias: IliasSycronizer,
|
ilias: IliasSycronizer,
|
||||||
|
|
@ -269,8 +268,8 @@ class Pferd(Location):
|
||||||
file_conflict_resolver {FileConflictResolver} -- A function specifying how to deal
|
file_conflict_resolver {FileConflictResolver} -- A function specifying how to deal
|
||||||
with overwriting or deleting files. The default always asks the user.
|
with overwriting or deleting files. The default always asks the user.
|
||||||
"""
|
"""
|
||||||
PRETTY.starting_synchronizer(target, "ILIAS", "An ILIAS element by url")
|
PRETTY.starting_synchronizer(
|
||||||
|
target, "ILIAS", "An ILIAS element by url")
|
||||||
|
|
||||||
results = ilias.add_target(
|
results = ilias.add_target(
|
||||||
lambda crawler: crawler.recursive_crawl_url(full_url),
|
lambda crawler: crawler.recursive_crawl_url(full_url),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue