Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flaskdav
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
flaskdav
Commits
e017ca7e
Commit
e017ca7e
authored
Dec 16, 2015
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve doc + update TODO.
parent
66719e14
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
README.md
README.md
+4
-2
flaskdav.py
flaskdav.py
+4
-2
No files found.
README.md
View file @
e017ca7e
...
@@ -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
flaskdav.py
View file @
e017ca7e
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment