diff options
| author | P. Christeas <p_christ@hol.gr> | 2010-10-12 13:40:35 +0300 |
|---|---|---|
| committer | P. Christeas <p_christ@hol.gr> | 2010-10-12 13:40:35 +0300 |
| commit | 1b301705258289e13bdcc64e063420792839fe96 (patch) | |
| tree | 4e9b54eed0623b6ed0c71c97043e189c760614b6 /addons/document_webdav/webdav_server.py | |
| parent | f5117544fa0a0c18d63bbe8acba8882d13c39bb7 (diff) | |
doc webdav: switch on the DAV v2 features
The underlying python-webdav supports some emulation for lock/unlock, so
try to use that.
bzr revid: p_christ@hol.gr-20101012104035-jffog0w1dco2lo9i
Diffstat (limited to 'addons/document_webdav/webdav_server.py')
| -rw-r--r-- | addons/document_webdav/webdav_server.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/document_webdav/webdav_server.py b/addons/document_webdav/webdav_server.py index c86cde2b096..7e4bb69fa0a 100644 --- a/addons/document_webdav/webdav_server.py +++ b/addons/document_webdav/webdav_server.py @@ -57,7 +57,7 @@ def OpenDAVConfig(**kw): class DAVHandler(HttpOptions, FixSendError, DAVRequestHandler): verbose = False protocol_version = 'HTTP/1.1' - _HTTP_OPTIONS= { 'DAV' : ['1',], + _HTTP_OPTIONS= { 'DAV' : ['1', '2'], 'Allow' : [ 'GET', 'HEAD', 'COPY', 'MOVE', 'POST', 'PUT', 'PROPFIND', 'PROPPATCH', 'OPTIONS', 'MKCOL', 'DELETE', 'TRACE', 'REPORT', ] @@ -265,8 +265,7 @@ try: handler.debug = config.get_misc('webdav','debug',True) _dc = { 'verbose' : verbose, 'directory' : directory, - 'lockemulation' : False, - + 'lockemulation' : True, } conf = OpenDAVConfig(**_dc) |
