doc webdav: Fix putting of utf-8 names

We had a mix of unicode and utf-8 encoded strings, which broke the join
at line 700.

bzr revid: p_christ@hol.gr-20101123184905-9t7v1jrx257oog27
This commit is contained in:
P. Christeas
2010-11-23 20:49:05 +02:00
parent a7cc6e51a4
commit 91a0bbf1c5
+2 -2
View File
@@ -681,7 +681,7 @@ class openerp_dav_handler(dav_interface):
except Exception:
node = False
objname = uri2[-1]
objname = misc.ustr(uri2[-1])
ret = None
if not node:
@@ -714,7 +714,7 @@ class openerp_dav_handler(dav_interface):
etag = str(newchild.get_etag(cr))
except Exception, e:
self.parent.log_error("Cannot get etag for node: %s" % e)
ret = (hurl, etag)
ret = (str(hurl), etag)
else:
self._try_function(node.set_data, (cr, data), "save %s" % objname, cr=cr)