From f536feba96f8517f2731bbc28d5c1093278e91ae Mon Sep 17 00:00:00 2001 From: "P. Christeas" Date: Thu, 29 Jul 2010 16:39:38 +0300 Subject: [PATCH] Doc WebDAV: fix match_prop() to work like get_prop() Some properties (like the getetag) are handled in the interface, so match_prop has to use that algorithm. bzr revid: p_christ@hol.gr-20100729133938-1frjiz3kqqc12hjz --- addons/document_webdav/dav_fs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/document_webdav/dav_fs.py b/addons/document_webdav/dav_fs.py index b3ab45e2380..483a62f8b32 100644 --- a/addons/document_webdav/dav_fs.py +++ b/addons/document_webdav/dav_fs.py @@ -140,6 +140,8 @@ class openerp_dav_handler(dav_interface): raise DAV_NotFound def match_prop(self, uri, match, ns, propname): + if self.M_NS.has_key(ns): + return match == dav_interface.get_prop(self, uri, ns, propname) cr, uid, pool, dbname, uri2 = self.get_cr(uri) if not dbname: if cr: cr.close()