Commit e017ca7e authored by iv's avatar iv

Improve doc + update TODO.

parent 66719e14
...@@ -28,6 +28,8 @@ original files: ...@@ -28,6 +28,8 @@ original files:
* https://code.google.com/p/pywebdav/source/browse/pywebdav/lib/utils.py * https://code.google.com/p/pywebdav/source/browse/pywebdav/lib/utils.py
## TODO ## TODO
- LOCK/UNLOCK support - support LOCK/UNLOCK
- PROPPATCH support - support PROPPATCH
- continue cleaning PROPFIND code - continue cleaning PROPFIND code
- remove Resource class
- read large data received via PUT/PROPFIND methods by chunks
...@@ -89,8 +89,11 @@ def is_authorized(): ...@@ -89,8 +89,11 @@ def is_authorized():
@app.before_request @app.before_request
def before_request(): def before_request():
""" """
allow cross origin for webdav uri that are authorized * put in g the prepared response with status and headers
that can be changed by some methods later
* allow cross origin for webdav uri that are authorized
and filter unauthorized requests! and filter unauthorized requests!
* prepare response to OPTIONS request on webdav
""" """
if request.path.startswith(URI_BEGINNING_PATH['webdav']): if request.path.startswith(URI_BEGINNING_PATH['webdav']):
response = None response = None
...@@ -169,7 +172,6 @@ class WebDAV(MethodView): ...@@ -169,7 +172,6 @@ class WebDAV(MethodView):
""" """
response = g.response response = g.response
localpath = app.fs_handler.uri2local(request.path) localpath = app.fs_handler.uri2local(request.path)
# TODO if into a collection => list of the ressources
data = '' data = ''
if os.path.isdir(localpath): if os.path.isdir(localpath):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment