From 080e951518629a0a2567304aa9406d1014b1369d Mon Sep 17 00:00:00 2001 From: "P. Christeas" Date: Thu, 29 Jul 2010 16:39:37 +0300 Subject: [PATCH] Doc WebDAV: fix http options re-occurring bzr revid: p_christ@hol.gr-20100729133937-uic42ifltpq0yp8r --- addons/document_webdav/dav_fs.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/document_webdav/dav_fs.py b/addons/document_webdav/dav_fs.py index 0c31a9fc931..248b0e3ce60 100644 --- a/addons/document_webdav/dav_fs.py +++ b/addons/document_webdav/dav_fs.py @@ -158,7 +158,11 @@ class openerp_dav_handler(dav_interface): for key, val in node.http_options.items(): if isinstance(val, basestring): val = [val, ] - ret.setdefault(key, []).extend(val) + if key in ret: + ret[key] = ret[key][:] # copy the orig. array + else: + ret[key] = [] + ret[key].extend(val) self.parent.log_message('options: %s' % ret) else: