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
This commit is contained in:
P. Christeas
2010-07-29 16:39:38 +03:00
parent 99087be2b5
commit f536feba96
+2
View File
@@ -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()