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
nexedi
flaskdav
Commits
7e4fdca9
Commit
7e4fdca9
authored
Dec 09, 2015
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add PROPFIND support.
parent
5ef4c869
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
436 additions
and
6 deletions
+436
-6
README.md
README.md
+5
-2
flaskdav.py
flaskdav.py
+15
-3
utils.py
utils.py
+416
-1
No files found.
README.md
View file @
7e4fdca9
...
@@ -21,8 +21,11 @@ The HMAC key is reset each time you restart the server.
...
@@ -21,8 +21,11 @@ The HMAC key is reset each time you restart the server.
flaskdav is under the GPL2 license.
flaskdav is under the GPL2 license.
utils.py is a modified version of PyWebDAV's server/fshandler.py under GPL2 License
utils.py is a modified version of PyWebDAV's files that are under GPL2 License
original file: https://code.google.com/p/pywebdav/source/browse/pywebdav/server/fshandler.py
original files:
*
https://code.google.com/p/pywebdav/source/browse/pywebdav/server/fshandler.py
*
https://code.google.com/p/pywebdav/source/browse/pywebdav/lib/propfind.py
*
https://code.google.com/p/pywebdav/source/browse/pywebdav/lib/utils.py
## TODO
## TODO
-
LOCK/UNLOCK support
-
LOCK/UNLOCK support
...
...
flaskdav.py
View file @
7e4fdca9
...
@@ -195,11 +195,23 @@ class WebDAV(MethodView):
...
@@ -195,11 +195,23 @@ class WebDAV(MethodView):
return
response
return
response
def
propfind
(
self
,
pathname
):
def
propfind
(
self
,
pathname
):
"""
PROPFIND:
return informations about the properties of a resource/collection
into a XML body response
"""
response
=
g
.
response
response
=
g
.
response
# currently unsupported
pf
=
utils
.
PropfindProcessor
(
response
.
status
=
'501'
request
.
path
,
app
.
fs_handler
,
request
.
headers
.
get
(
'Depth'
,
'infinity'
),
self
.
get_body
())
try
:
response
.
data
=
pf
.
create_response
()
+
'
\
n
'
except
IOError
:
response
.
status
=
'404'
return
response
return
response
def
proppatch
(
self
,
pathname
):
def
proppatch
(
self
,
pathname
):
...
...
utils.py
View file @
7e4fdca9
This diff is collapsed.
Click to expand it.
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