Skip to content
Snippets Groups Projects
Commit 8834d29f authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

REVIEW Reintroduced two deprecated arguments for the crawler class

parent 6d8e1fca
No related branches found
No related tags found
2 merge requests!108Release 0.5.0,!104Create a new scanner module and move functions from crawl module there
Pipeline #34650 passed with warnings
......@@ -178,11 +178,18 @@ class Crawler(object):
"""
def __init__(self,
generalStore: Optional[GeneralStore] = None,
debug: bool = False,
identifiableAdapter: Optional[IdentifiableAdapter] = None,
securityMode: SecurityMode = SecurityMode.UPDATE):
"""
Create a new crawler and initialize an empty RecordStore and GeneralStore.
Deprecated arguments:
- The debug argument does not have an effect anymore.
- generalStore: This argument does not have an effect anymore. It might be added to the scanning
functions in the scanner module in the future, if needed.
Parameters
----------
identifiableAdapter : IdentifiableAdapter
......@@ -203,6 +210,16 @@ class Crawler(object):
if identifiableAdapter is not None:
self.identifiableAdapter = identifiableAdapter
if not debug:
# TODO: not ideal, how to warn if debug is explicitely set to false?
warnings.warn(DeprecationWarning(
"The debug argument of the Crawler class is deprecated and has no effect."))
if generalStore is not None:
warnings.warn(DeprecationWarning(
"The generalStore argument of the Crawler class is deprecated and has no effect."))
def generate_run_id(self):
self.run_id = uuid.uuid1()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment