WsgiDAV 4.3.2__tar.gz → 4.3.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/CHANGELOG.md +9 -2
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/LICENSE +1 -1
- {WsgiDAV-4.3.2/WsgiDAV.egg-info → wsgidav-4.3.3}/PKG-INFO +5 -2
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/README.md +4 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3/WsgiDAV.egg-info}/PKG-INFO +5 -2
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/setup.cfg +0 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/tests/test_http.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/tests/test_litmus.py +2 -2
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/tests/test_lock_manager.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/tests/test_property_manager.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/tests/test_scripted.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/tests/test_streaming.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/tests/test_util.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/tests/test_wsgidav_app.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/__init__.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/dav_error.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/dav_provider.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/dc/base_dc.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/dc/nt_dc.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/dc/pam_dc.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/dc/simple_dc.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/default_conf.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/dir_browser/_dir_browser.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/error_printer.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/fs_dav_provider.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/http_authenticator.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/lock_man/lock_manager.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/lock_man/lock_storage.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/lock_man/lock_storage_redis.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/mw/cors.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/mw/debug_filter.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/prop_man/couch_property_manager.py +9 -9
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/prop_man/mongo_property_manager.py +8 -8
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/prop_man/property_manager.py +2 -2
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/request_resolver.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/request_server.py +3 -6
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/samples/dav_provider_tools.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/samples/hg_dav_provider.py +8 -8
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/samples/mongo_dav_provider.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/samples/mysql_dav_provider.py +3 -8
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/samples/virtual_dav_provider.py +6 -4
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/server/ext_wsgiutils_server.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/server/run_reloading_server.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/server/server_sample.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/stream_tools.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/util.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/wsgidav_app.py +2 -2
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/xml_tools.py +1 -1
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/WsgiDAV.egg-info/SOURCES.txt +0 -0
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/WsgiDAV.egg-info/dependency_links.txt +0 -0
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/WsgiDAV.egg-info/entry_points.txt +0 -0
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/WsgiDAV.egg-info/not-zip-safe +0 -0
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/WsgiDAV.egg-info/requires.txt +0 -0
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/WsgiDAV.egg-info/top_level.txt +0 -0
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/pyproject.toml +0 -0
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/sample_wsgidav.yaml +0 -0
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/setup.py +0 -0
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/dc/__init__.py +0 -0
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/dir_browser/__init__.py +0 -0
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/dir_browser/htdocs/favicon.ico +0 -0
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/dir_browser/htdocs/logo.png +0 -0
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/dir_browser/htdocs/script.js +0 -0
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/dir_browser/htdocs/style.css +0 -0
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/dir_browser/htdocs/template.html +0 -0
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/lock_man/__init__.py +0 -0
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/mw/__init__.py +0 -0
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/mw/base_mw.py +0 -0
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/prop_man/__init__.py +0 -0
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/rw_lock.py +0 -0
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/samples/__init__.py +0 -0
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/server/__init__.py +0 -0
- {WsgiDAV-4.3.2 → wsgidav-4.3.3}/wsgidav/server/server_cli.py +0 -0
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 4.3.
|
|
3
|
+
## 4.3.4 / Unreleased
|
|
4
|
+
|
|
5
|
+
## 4.3.3 / 2024-05-04
|
|
6
|
+
|
|
7
|
+
- Deprecate Python 3.8 (EOL: 2024-10-14)
|
|
8
|
+
- Build Windows installer with Python 3.12
|
|
9
|
+
- Update to Cheroot 10.8
|
|
10
|
+
- [#315](https://github.com/mar10/wsgidav/issues/315) CHANGELOG.md is installed into the virtualenv or prefix root directory
|
|
4
11
|
|
|
5
12
|
## 4.3.2 / 2024-03-29
|
|
6
13
|
|
|
7
|
-
- [#318](https://github.com/mar10/wsgidav/issues/318)
|
|
14
|
+
- [#318](https://github.com/mar10/wsgidav/issues/318) Error when used with lxml
|
|
8
15
|
- Test with Python 3.12
|
|
9
16
|
- Update to black 24.3
|
|
10
17
|
- Use ruff instead of flake8
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2009-
|
|
3
|
+
Copyright (c) 2009-2024 Martin Wendt, (Original PyFileServer (c) 2005 Ho Chun Wei)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: WsgiDAV
|
|
3
|
-
Version: 4.3.
|
|
3
|
+
Version: 4.3.3
|
|
4
4
|
Summary: Generic and extendable WebDAV server based on WSGI
|
|
5
5
|
Home-page: https://github.com/mar10/wsgidav
|
|
6
6
|
Author: Martin Wendt
|
|
@@ -91,7 +91,10 @@ Main features:
|
|
|
91
91
|
|
|
92
92
|
- **Note:** Windows users may prefer the
|
|
93
93
|
[MSI Installer](https://github.com/mar10/wsgidav/releases/latest)
|
|
94
|
-
(see <kbd>Assets</kbd> section)
|
|
94
|
+
(see <kbd>Assets</kbd> section), or use _winget_:
|
|
95
|
+
```ps1
|
|
96
|
+
> winget install wsgidav
|
|
97
|
+
```
|
|
95
98
|
|
|
96
99
|
- WebDAV is a superset of HTTP, so WsgiDAV is also a performant, multi-threaded
|
|
97
100
|
web server with SSL support.
|
|
@@ -44,7 +44,10 @@ Main features:
|
|
|
44
44
|
|
|
45
45
|
- **Note:** Windows users may prefer the
|
|
46
46
|
[MSI Installer](https://github.com/mar10/wsgidav/releases/latest)
|
|
47
|
-
(see <kbd>Assets</kbd> section)
|
|
47
|
+
(see <kbd>Assets</kbd> section), or use _winget_:
|
|
48
|
+
```ps1
|
|
49
|
+
> winget install wsgidav
|
|
50
|
+
```
|
|
48
51
|
|
|
49
52
|
- WebDAV is a superset of HTTP, so WsgiDAV is also a performant, multi-threaded
|
|
50
53
|
web server with SSL support.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: WsgiDAV
|
|
3
|
-
Version: 4.3.
|
|
3
|
+
Version: 4.3.3
|
|
4
4
|
Summary: Generic and extendable WebDAV server based on WSGI
|
|
5
5
|
Home-page: https://github.com/mar10/wsgidav
|
|
6
6
|
Author: Martin Wendt
|
|
@@ -91,7 +91,10 @@ Main features:
|
|
|
91
91
|
|
|
92
92
|
- **Note:** Windows users may prefer the
|
|
93
93
|
[MSI Installer](https://github.com/mar10/wsgidav/releases/latest)
|
|
94
|
-
(see <kbd>Assets</kbd> section)
|
|
94
|
+
(see <kbd>Assets</kbd> section), or use _winget_:
|
|
95
|
+
```ps1
|
|
96
|
+
> winget install wsgidav
|
|
97
|
+
```
|
|
95
98
|
|
|
96
99
|
- WebDAV is a superset of HTTP, so WsgiDAV is also a performant, multi-threaded
|
|
97
100
|
web server with SSL support.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Licensed under the MIT license:
|
|
3
3
|
# http://www.opensource.org/licenses/mit-license.php
|
|
4
4
|
"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Licensed under the MIT license:
|
|
3
3
|
# http://www.opensource.org/licenses/mit-license.php
|
|
4
|
-
"""
|
|
4
|
+
r"""
|
|
5
5
|
Run the [Litmus test suite](http://www.webdav.org/neon/litmus/) against WsgiDAV
|
|
6
6
|
server.
|
|
7
7
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Licensed under the MIT license:
|
|
3
3
|
# http://www.opensource.org/licenses/mit-license.php
|
|
4
4
|
"""Unit test for lock_manager.py"""
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Licensed under the MIT license:
|
|
3
3
|
# http://www.opensource.org/licenses/mit-license.php
|
|
4
4
|
"""Unit test for property_manager.py"""
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Licensed under the MIT license:
|
|
3
3
|
# http://www.opensource.org/licenses/mit-license.php
|
|
4
4
|
"""
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Licensed under the MIT license:
|
|
3
3
|
# http://www.opensource.org/licenses/mit-license.php
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Licensed under the MIT license:
|
|
3
3
|
# http://www.opensource.org/licenses/mit-license.php
|
|
4
4
|
"""Unit tests for wsgidav.util"""
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Licensed under the MIT license:
|
|
3
3
|
# http://www.opensource.org/licenses/mit-license.php
|
|
4
4
|
"""
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Original PyFileServer (c) 2005 Ho Chun Wei.
|
|
3
3
|
# Licensed under the MIT license:
|
|
4
4
|
# http://www.opensource.org/licenses/mit-license.php
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Original PyFileServer (c) 2005 Ho Chun Wei.
|
|
3
3
|
# Licensed under the MIT license:
|
|
4
4
|
# http://www.opensource.org/licenses/mit-license.php
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
|
|
3
3
|
"""
|
|
4
4
|
Abstract base class of a domain controller (used by HTTPAuthenticator).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Original PyFileServer (c) 2005 Ho Chun Wei.
|
|
3
3
|
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
|
|
4
4
|
"""
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
|
|
3
3
|
"""
|
|
4
4
|
Implementation of a domain controller that allows users to authenticate against
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Original PyFileServer (c) 2005 Ho Chun Wei.
|
|
3
3
|
# Licensed under the MIT license:
|
|
4
4
|
# http://www.opensource.org/licenses/mit-license.php
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Original PyFileServer (c) 2005 Ho Chun Wei.
|
|
3
3
|
# Licensed under the MIT license:
|
|
4
4
|
# http://www.opensource.org/licenses/mit-license.php
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Licensed under the MIT license:
|
|
3
3
|
# http://www.opensource.org/licenses/mit-license.php
|
|
4
4
|
"""
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Original PyFileServer (c) 2005 Ho Chun Wei.
|
|
3
3
|
# Licensed under the MIT license:
|
|
4
4
|
# http://www.opensource.org/licenses/mit-license.php
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Original PyFileServer (c) 2005 Ho Chun Wei.
|
|
3
3
|
# Licensed under the MIT license:
|
|
4
4
|
# http://www.opensource.org/licenses/mit-license.php
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Original PyFileServer (c) 2005 Ho Chun Wei.
|
|
3
3
|
# Licensed under the MIT license:
|
|
4
4
|
# http://www.opensource.org/licenses/mit-license.php
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Original PyFileServer (c) 2005 Ho Chun Wei.
|
|
3
3
|
# Licensed under the MIT license:
|
|
4
4
|
# http://www.opensource.org/licenses/mit-license.php
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Original PyFileServer (c) 2005 Ho Chun Wei.
|
|
3
3
|
# Licensed under the MIT license:
|
|
4
4
|
# http://www.opensource.org/licenses/mit-license.php
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Original PyFileServer (c) 2005 Ho Chun Wei.
|
|
3
3
|
# Licensed under the MIT license:
|
|
4
4
|
# http://www.opensource.org/licenses/mit-license.php
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Licensed under the MIT license:
|
|
3
3
|
# http://www.opensource.org/licenses/mit-license.php
|
|
4
4
|
"""
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Original PyFileServer (c) 2005 Ho Chun Wei.
|
|
3
3
|
# Licensed under the MIT license:
|
|
4
4
|
# http://www.opensource.org/licenses/mit-license.php
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
|
|
3
3
|
"""
|
|
4
4
|
Implements a property manager based on CouchDB.
|
|
@@ -115,7 +115,7 @@ class CouchPropertyManager:
|
|
|
115
115
|
"""Return properties document for path."""
|
|
116
116
|
# Query the permanent view to find a url
|
|
117
117
|
vr = self.db.view("properties/by_url", key=url, include_docs=True)
|
|
118
|
-
_logger.debug("find(
|
|
118
|
+
_logger.debug(f"find({url!r}) returned {len(vr)}")
|
|
119
119
|
assert len(vr) <= 1, "Found multiple matches for %r" % url
|
|
120
120
|
for row in vr:
|
|
121
121
|
assert row.doc
|
|
@@ -148,7 +148,7 @@ class CouchPropertyManager:
|
|
|
148
148
|
return propNames
|
|
149
149
|
|
|
150
150
|
def get_property(self, norm_url, name, environ=None):
|
|
151
|
-
_logger.debug("get_property(
|
|
151
|
+
_logger.debug(f"get_property({norm_url}, {name})")
|
|
152
152
|
doc = self._find(norm_url)
|
|
153
153
|
if not doc:
|
|
154
154
|
return None
|
|
@@ -183,7 +183,7 @@ class CouchPropertyManager:
|
|
|
183
183
|
self.db.save(doc)
|
|
184
184
|
|
|
185
185
|
def remove_property(self, norm_url, name, dry_run=False, environ=None):
|
|
186
|
-
_logger.debug("remove_property(
|
|
186
|
+
_logger.debug(f"remove_property({norm_url}, {name}, dry_run={dry_run})")
|
|
187
187
|
if dry_run:
|
|
188
188
|
# TODO: can we check anything here?
|
|
189
189
|
return
|
|
@@ -205,10 +205,10 @@ class CouchPropertyManager:
|
|
|
205
205
|
doc = self._find(srcUrl)
|
|
206
206
|
if not doc:
|
|
207
207
|
_logger.debug(
|
|
208
|
-
"copy_properties(
|
|
208
|
+
f"copy_properties({srcUrl}, {destUrl}): src has no properties"
|
|
209
209
|
)
|
|
210
210
|
return
|
|
211
|
-
_logger.debug("copy_properties(
|
|
211
|
+
_logger.debug(f"copy_properties({srcUrl}, {destUrl})")
|
|
212
212
|
assert not self._find(destUrl)
|
|
213
213
|
doc2 = {
|
|
214
214
|
"_id": uuid4().hex,
|
|
@@ -220,13 +220,13 @@ class CouchPropertyManager:
|
|
|
220
220
|
self.db.save(doc2)
|
|
221
221
|
|
|
222
222
|
def move_properties(self, srcUrl, destUrl, with_children, environ=None):
|
|
223
|
-
_logger.debug("move_properties(
|
|
223
|
+
_logger.debug(f"move_properties({srcUrl}, {destUrl}, {with_children})")
|
|
224
224
|
if with_children:
|
|
225
225
|
# Match URLs that are equal to <srcUrl> or begin with '<srcUrl>/'
|
|
226
226
|
docList = self._find_descendents(srcUrl)
|
|
227
227
|
for doc in docList:
|
|
228
228
|
newDest = doc["url"].replace(srcUrl, destUrl)
|
|
229
|
-
_logger.debug("move property
|
|
229
|
+
_logger.debug("move property {} -> {}".format(doc["url"], newDest))
|
|
230
230
|
doc["url"] = newDest
|
|
231
231
|
self.db.save(doc)
|
|
232
232
|
else:
|
|
@@ -234,7 +234,7 @@ class CouchPropertyManager:
|
|
|
234
234
|
# TODO: use findAndModify()?
|
|
235
235
|
doc = self._find(srcUrl)
|
|
236
236
|
if doc:
|
|
237
|
-
_logger.debug("move property
|
|
237
|
+
_logger.debug("move property {} -> {}".format(doc["url"], destUrl))
|
|
238
238
|
doc["url"] = destUrl
|
|
239
239
|
self.db.save(doc)
|
|
240
240
|
return
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
|
|
3
3
|
"""
|
|
4
4
|
Implements a property manager based on MongoDB.
|
|
@@ -112,7 +112,7 @@ class MongoPropertyManager:
|
|
|
112
112
|
return propNames
|
|
113
113
|
|
|
114
114
|
def get_property(self, norm_url, name, environ=None):
|
|
115
|
-
_logger.debug("get_property(
|
|
115
|
+
_logger.debug(f"get_property({norm_url}, {name})")
|
|
116
116
|
doc = self.collection.find_one({"_url": norm_url})
|
|
117
117
|
if not doc:
|
|
118
118
|
return None
|
|
@@ -142,7 +142,7 @@ class MongoPropertyManager:
|
|
|
142
142
|
|
|
143
143
|
def remove_property(self, norm_url, name, dry_run=False, environ=None):
|
|
144
144
|
""" """
|
|
145
|
-
_logger.debug("remove_property(
|
|
145
|
+
_logger.debug(f"remove_property({norm_url}, {name}, dry_run={dry_run})")
|
|
146
146
|
if dry_run:
|
|
147
147
|
# TODO: can we check anything here?
|
|
148
148
|
return
|
|
@@ -164,15 +164,15 @@ class MongoPropertyManager:
|
|
|
164
164
|
doc = self.collection.find_one({"_url": srcUrl})
|
|
165
165
|
if not doc:
|
|
166
166
|
_logger.debug(
|
|
167
|
-
"copy_properties(
|
|
167
|
+
f"copy_properties({srcUrl}, {destUrl}): src has no properties"
|
|
168
168
|
)
|
|
169
169
|
return
|
|
170
|
-
_logger.debug("copy_properties(
|
|
170
|
+
_logger.debug(f"copy_properties({srcUrl}, {destUrl})")
|
|
171
171
|
doc2 = doc.copy()
|
|
172
172
|
self.collection.insert(doc2)
|
|
173
173
|
|
|
174
174
|
def move_properties(self, srcUrl, destUrl, with_children, environ=None):
|
|
175
|
-
_logger.debug("move_properties(
|
|
175
|
+
_logger.debug(f"move_properties({srcUrl}, {destUrl}, {with_children})")
|
|
176
176
|
if with_children:
|
|
177
177
|
# Match URLs that are equal to <srcUrl> or begin with '<srcUrl>/'
|
|
178
178
|
matchBegin = "^" + srcUrl.rstrip("/") + "/"
|
|
@@ -180,7 +180,7 @@ class MongoPropertyManager:
|
|
|
180
180
|
docList = self.collection.find(query)
|
|
181
181
|
for doc in docList:
|
|
182
182
|
newDest = doc["_url"].replace(srcUrl, destUrl)
|
|
183
|
-
_logger.debug("move property
|
|
183
|
+
_logger.debug("move property {} -> {}".format(doc["_url"], newDest))
|
|
184
184
|
doc["_url"] = newDest
|
|
185
185
|
self.collection.save(doc)
|
|
186
186
|
else:
|
|
@@ -188,7 +188,7 @@ class MongoPropertyManager:
|
|
|
188
188
|
# TODO: use findAndModify()?
|
|
189
189
|
doc = self.collection.find_one({"_url": srcUrl})
|
|
190
190
|
if doc:
|
|
191
|
-
_logger.debug("move property
|
|
191
|
+
_logger.debug("move property {} -> {}".format(doc["_url"], destUrl))
|
|
192
192
|
doc["_url"] = destUrl
|
|
193
193
|
self.collection.save(doc)
|
|
194
194
|
return
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Original PyFileServer (c) 2005 Ho Chun Wei.
|
|
3
3
|
# Licensed under the MIT license:
|
|
4
4
|
# http://www.opensource.org/licenses/mit-license.php
|
|
@@ -91,7 +91,7 @@ class PropertyManager:
|
|
|
91
91
|
if not self._loaded:
|
|
92
92
|
return True
|
|
93
93
|
for k, v in self._dict.items():
|
|
94
|
-
_dummy = "{}, {}"
|
|
94
|
+
_dummy = f"{k}, {v}" # noqa
|
|
95
95
|
# _logger.debug("{} checks ok {}".format(self.__class__.__name__, msg))
|
|
96
96
|
return True
|
|
97
97
|
except Exception:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Original PyFileServer (c) 2005 Ho Chun Wei.
|
|
3
3
|
# Licensed under the MIT license:
|
|
4
4
|
# http://www.opensource.org/licenses/mit-license.php
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Original PyFileServer (c) 2005 Ho Chun Wei.
|
|
3
3
|
# Licensed under the MIT license:
|
|
4
4
|
# http://www.opensource.org/licenses/mit-license.php
|
|
@@ -114,8 +114,7 @@ class RequestServer:
|
|
|
114
114
|
)
|
|
115
115
|
# sort: 0:"calls",1:"time", 2: "cumulative"
|
|
116
116
|
profile.print_stats(sort=2)
|
|
117
|
-
|
|
118
|
-
yield v
|
|
117
|
+
yield from res
|
|
119
118
|
if hasattr(res, "close"):
|
|
120
119
|
res.close()
|
|
121
120
|
return
|
|
@@ -126,9 +125,7 @@ class RequestServer:
|
|
|
126
125
|
# _logger.warning("#1... 2")
|
|
127
126
|
try:
|
|
128
127
|
# _logger.warning("#1... 3")
|
|
129
|
-
|
|
130
|
-
# _logger.warning("#1... 4")
|
|
131
|
-
yield v
|
|
128
|
+
yield from app_iter
|
|
132
129
|
# _logger.warning("#1... 5")
|
|
133
130
|
# except Exception:
|
|
134
131
|
# _logger.warning("#1... 6")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
|
|
3
3
|
"""
|
|
4
4
|
Tools that make it easier to implement custom WsgiDAV providers.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
|
|
3
3
|
"""
|
|
4
4
|
DAV provider that publishes a Mercurial repository.
|
|
@@ -175,7 +175,7 @@ class HgResource(_DAVResource):
|
|
|
175
175
|
def get_display_name(self):
|
|
176
176
|
if self.is_collection or self.fctx.filerev() is None:
|
|
177
177
|
return self.name
|
|
178
|
-
return "
|
|
178
|
+
return f"{self.name}@{self.fctx.filerev()}"
|
|
179
179
|
|
|
180
180
|
def get_etag(self):
|
|
181
181
|
return (
|
|
@@ -368,14 +368,14 @@ class HgResource(_DAVResource):
|
|
|
368
368
|
destHgPath = destHgPath.strip("/")
|
|
369
369
|
ui = self.provider.ui
|
|
370
370
|
repo = self.provider.repo
|
|
371
|
-
_logger.info("handle_copy
|
|
371
|
+
_logger.info(f"handle_copy {self.localHgPath} -> {destHgPath}")
|
|
372
372
|
if self.rev is None and destType == "edit":
|
|
373
373
|
# COPY /edit/a/b to /edit/c/d: turn into 'hg copy -f a/b c/d'
|
|
374
374
|
commands.copy(ui, repo, self.localHgPath, destHgPath, force=True)
|
|
375
375
|
elif self.rev is None and destType == "released":
|
|
376
376
|
# COPY /edit/a/b to /released/c/d
|
|
377
377
|
# This is interpreted as 'hg commit a/b' (ignoring the dest. path)
|
|
378
|
-
self._commit("WsgiDAV commit (COPY
|
|
378
|
+
self._commit(f"WsgiDAV commit (COPY {self.path} -> {dest_path})")
|
|
379
379
|
else:
|
|
380
380
|
raise DAVError(HTTP_FORBIDDEN)
|
|
381
381
|
# Return True: request was handled
|
|
@@ -387,14 +387,14 @@ class HgResource(_DAVResource):
|
|
|
387
387
|
destHgPath = destHgPath.strip("/")
|
|
388
388
|
ui = self.provider.ui
|
|
389
389
|
repo = self.provider.repo
|
|
390
|
-
_logger.info("handle_copy
|
|
390
|
+
_logger.info(f"handle_copy {self.localHgPath} -> {destHgPath}")
|
|
391
391
|
if self.rev is None and destType == "edit":
|
|
392
392
|
# MOVE /edit/a/b to /edit/c/d: turn into 'hg rename -f a/b c/d'
|
|
393
393
|
commands.rename(ui, repo, self.localHgPath, destHgPath, force=True)
|
|
394
394
|
elif self.rev is None and destType == "released":
|
|
395
395
|
# MOVE /edit/a/b to /released/c/d
|
|
396
396
|
# This is interpreted as 'hg commit a/b' (ignoring the dest. path)
|
|
397
|
-
self._commit("WsgiDAV commit (MOVE
|
|
397
|
+
self._commit(f"WsgiDAV commit (MOVE {self.path} -> {dest_path})")
|
|
398
398
|
else:
|
|
399
399
|
raise DAVError(HTTP_FORBIDDEN)
|
|
400
400
|
# Return True: request was handled
|
|
@@ -546,14 +546,14 @@ class HgResourceProvider(DAVProvider):
|
|
|
546
546
|
if p1 == "":
|
|
547
547
|
p1 = p2
|
|
548
548
|
else:
|
|
549
|
-
p1 = "
|
|
549
|
+
p1 = f"{p1}/{p2}"
|
|
550
550
|
dirinfos.setdefault(p1, ([], []))[1].append(parents[-1])
|
|
551
551
|
filedict[file] = True
|
|
552
552
|
files.sort()
|
|
553
553
|
|
|
554
554
|
cache = {"files": files, "dirinfos": dirinfos, "filedict": filedict}
|
|
555
555
|
caches[util.to_str(rev)] = cache
|
|
556
|
-
_logger.info("_getRepoInfo(
|
|
556
|
+
_logger.info(f"_getRepoInfo({rev}) took {time.time() - start_time:.3f}")
|
|
557
557
|
return cache
|
|
558
558
|
|
|
559
559
|
# def _listMembers(self, path, rev=None):
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
|
|
3
3
|
"""
|
|
4
4
|
Implementation of a WebDAV provider that provides a very basic, read-only
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Original PyFileServer (c) 2005 Ho Chun Wei.
|
|
3
3
|
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
|
|
4
4
|
"""
|
|
@@ -258,7 +258,7 @@ class MySQLBrowserResource(_DAVResource):
|
|
|
258
258
|
conn = self.provider._init_connection()
|
|
259
259
|
fieldlist = self.provider._get_field_list(conn, tableName)
|
|
260
260
|
for fieldname in fieldlist:
|
|
261
|
-
propNames.append("{
|
|
261
|
+
propNames.append(f"{{{tableName}:}}{fieldname}")
|
|
262
262
|
conn.close()
|
|
263
263
|
return propNames
|
|
264
264
|
|
|
@@ -316,12 +316,7 @@ class MySQLBrowserProvider(DAVProvider):
|
|
|
316
316
|
self._count_initConnection = 0
|
|
317
317
|
|
|
318
318
|
def __repr__(self):
|
|
319
|
-
return "
|
|
320
|
-
self.__class__.__name__,
|
|
321
|
-
self._db,
|
|
322
|
-
self._host,
|
|
323
|
-
self._user,
|
|
324
|
-
)
|
|
319
|
+
return f"{self.__class__.__name__} for db '{self._db}' on '{self._host}' (user: '{self._user}')'"
|
|
325
320
|
|
|
326
321
|
def _split_path(self, path):
|
|
327
322
|
"""Return (tableName, primaryKey) tuple for a request path."""
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
|
|
3
3
|
"""
|
|
4
4
|
Sample implementation of a DAV provider that provides a browsable,
|
|
@@ -479,12 +479,12 @@ class VirtualArtifact(_VirtualNonCollection):
|
|
|
479
479
|
return True
|
|
480
480
|
|
|
481
481
|
def get_ref_url(self):
|
|
482
|
-
refPath = "/by_key
|
|
482
|
+
refPath = "/by_key/{}/{}".format(self.data["key"], self.name)
|
|
483
483
|
return quote(self.provider.share_path + refPath)
|
|
484
484
|
|
|
485
485
|
def get_content(self):
|
|
486
486
|
fileLinks = [
|
|
487
|
-
"<a href='
|
|
487
|
+
f"<a href='{os.path.basename(f)}'>{f}</a>\n"
|
|
488
488
|
for f in self.data["resPathList"]
|
|
489
489
|
]
|
|
490
490
|
dict = self.data.copy()
|
|
@@ -578,7 +578,9 @@ class VirtualResFile(_VirtualNonCollection):
|
|
|
578
578
|
return statresults[stat.ST_MTIME]
|
|
579
579
|
|
|
580
580
|
def get_ref_url(self):
|
|
581
|
-
refPath = "/by_key
|
|
581
|
+
refPath = "/by_key/{}/{}".format(
|
|
582
|
+
self.data["key"], os.path.basename(self.file_path)
|
|
583
|
+
)
|
|
582
584
|
return quote(self.provider.share_path + refPath)
|
|
583
585
|
|
|
584
586
|
def get_content(self):
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Original PyFileServer (c) 2005 Ho Chun Wei.
|
|
3
3
|
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
|
|
4
4
|
"""
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
|
|
3
3
|
"""
|
|
4
4
|
Wrapper for ``server_cli``, that restarts the server when source code is
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Original PyFileServer (c) 2005 Ho Chun Wei.
|
|
3
3
|
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
|
|
4
4
|
"""
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
|
|
3
3
|
"""
|
|
4
4
|
Implement the FileLikeQueue helper class.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/m ar10/wsgidav
|
|
2
2
|
# Original PyFileServer (c) 2005 Ho Chun Wei.
|
|
3
3
|
# Licensed under the MIT license:
|
|
4
4
|
# http://www.opensource.org/licenses/mit-license.php
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Original PyFileServer (c) 2005 Ho Chun Wei.
|
|
3
3
|
# Licensed under the MIT license:
|
|
4
4
|
# http://www.opensource.org/licenses/mit-license.php
|
|
@@ -132,7 +132,7 @@ def _check_config(config):
|
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
#: Minimal Python version that is supported by WsgiDAV
|
|
135
|
-
MIN_PYTHON_VERSION_INFO = (3,
|
|
135
|
+
MIN_PYTHON_VERSION_INFO = (3, 9)
|
|
136
136
|
|
|
137
137
|
check_python_version(MIN_PYTHON_VERSION_INFO)
|
|
138
138
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# (c) 2009-
|
|
1
|
+
# (c) 2009-2024 Martin Wendt and contributors; see WsgiDAV https://github.com/mar10/wsgidav
|
|
2
2
|
# Original PyFileServer (c) 2005 Ho Chun Wei.
|
|
3
3
|
# Licensed under the MIT license:
|
|
4
4
|
# http://www.opensource.org/licenses/mit-license.php
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|