diff options
| author | Harry (OpenERP) <hmo@tinyerp.com> | 2010-07-11 11:36:46 +0530 |
|---|---|---|
| committer | Harry (OpenERP) <hmo@tinyerp.com> | 2010-07-11 11:36:46 +0530 |
| commit | fad9edc19eb7e0ac32aab96f6f299e328b6574f2 (patch) | |
| tree | 6279c86757be0f9754e2c33d0a1d6388778084d4 /addons/document_webdav/webdav.py | |
| parent | 6ccff1aab8992bd56a9e0ac45ad5988b549ab530 (diff) | |
| parent | d6f1e1f29f8110c363d8a413da8dcf17284cc205 (diff) | |
[MERGE]
bzr revid: hmo@tinyerp.com-20100711060646-gwp6039vsln1x30a
Diffstat (limited to 'addons/document_webdav/webdav.py')
| -rw-r--r-- | addons/document_webdav/webdav.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/document_webdav/webdav.py b/addons/document_webdav/webdav.py index e904d2ecfb7..f2f57c77730 100644 --- a/addons/document_webdav/webdav.py +++ b/addons/document_webdav/webdav.py @@ -48,6 +48,8 @@ def mk_prop_response(self, uri, good_props, bad_props, doc): # write href information uparts=urlparse.urlparse(uri) fileloc=uparts[2] + if isinstance(fileloc, unicode): + fileloc = fileloc.encode('utf-8') href=doc.createElement("D:href") davpath = self._dataclass.parent.get_davpath() hurl = '%s://%s%s%s' % (uparts[0], uparts[1], davpath, urllib.quote(fileloc)) @@ -126,6 +128,8 @@ def mk_propname_response(self,uri,propnames,doc): # write href information uparts=urlparse.urlparse(uri) fileloc=uparts[2] + if isinstance(fileloc, unicode): + fileloc = fileloc.encode('utf-8') href=doc.createElement("D:href") davpath = self._dataclass.parent.get_davpath() hurl = '%s://%s%s%s' % (uparts[0], uparts[1], davpath, urllib.quote(fileloc)) |
