From 834901e6278f034b4b7c7f1cb2f7ad3fb0a42415 Mon Sep 17 00:00:00 2001 From: Stefan Hynek <stefan.hynek@uni-goettingen.de> Date: Wed, 23 Feb 2022 16:17:34 +0100 Subject: [PATCH] fix(wsgidav): update wsgidav to 4.0.1; remove requests, zeep; rename config key that has changed with the update --- requirements.txt | 6 ++---- src/main.py | 7 ++----- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/requirements.txt b/requirements.txt index 24416cd..8a632ee 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,4 @@ -https://gitlab.gwdg.de/dariah-de/textgridrep/textgrid-python-clients/-/archive/e6971b39e19efb0e81d35a634bd616917b3543b3/textgrid-python-clients-e6971b39e19efb0e81d35a634bd616917b3543b3.tar.gz +https://gitlab.gwdg.de/dariah-de/textgridrep/textgrid-python-clients/-/archive/ef48104e96ce045bce3702116171442c9f02a0be/textgrid-python-clients-ef48104e96ce045bce3702116171442c9f02a0be.tar.gz cheroot==8.5.2 -requests==2.26.0 sentry-sdk==1.4.3 -WsgiDAV==3.1.1 -zeep==4.1.0 +WsgiDAV==4.0.1 diff --git a/src/main.py b/src/main.py index d73f145..f49ed5c 100644 --- a/src/main.py +++ b/src/main.py @@ -25,9 +25,6 @@ tmp_logger = logging.getLogger("wsgidav") tmp_logger.propagate = True tmp_logger.setLevel(logging.DEBUG) -TMP_logger = logging.getLogger("zeep") -TMP_logger.setLevel(logging.WARNING) - # Configuration of the WsgiDAVApp. # https://wsgidav.readthedocs.io/en/latest/user_guide_configure.html # TODO: move to config.py @@ -35,9 +32,9 @@ config = { "host": os.getenv("host") or "localhost", "port": int(os.getenv("port") or "8080"), "provider_mapping": { - "/": {"provider": "repdav.textgrid_dav_provider.TextgridResourceProvider"}, + "/": {"class": "repdav.textgrid_dav_provider.TextgridResourceProvider"}, }, - "verbose": 1, + "verbose": 4, "http_authenticator": { "domain_controller": "repdav.textgrid_domain_controller.TextgridDC", "accept_basic": True, # Allow basic authentication, True or False -- GitLab