Doc WebDAV: fix http options re-occurring

bzr revid: p_christ@hol.gr-20100729133937-uic42ifltpq0yp8r
This commit is contained in:
P. Christeas
2010-07-29 16:39:37 +03:00
parent 628651c6aa
commit 080e951518
+5 -1
View File
@@ -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: