projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc45f27
)
[FIX] WebDAV: fix the displayname property, for /webdav and /webdav/dbname
author
XRG
<>
Wed, 18 Aug 2010 06:00:48 +0000
(11:30 +0530)
committer
Harry (OpenERP)
<hmo@tinyerp.com>
Wed, 18 Aug 2010 06:00:48 +0000
(11:30 +0530)
bzr revid: hmo@tinyerp.com-
20100818060048
-eg5d58e30ey0tir6
addons/document_webdav/dav_fs.py
patch
|
blob
|
history
diff --git
a/addons/document_webdav/dav_fs.py
b/addons/document_webdav/dav_fs.py
index
5d641cb
..
798f277
100644
(file)
--- a/
addons/document_webdav/dav_fs.py
+++ b/
addons/document_webdav/dav_fs.py
@@
-395,7
+395,11
@@
class openerp_dav_handler(dav_interface):
cr, uid, pool, dbname, uri2 = self.get_cr(uri)
if not dbname:
if cr: cr.close()
- return COLLECTION
+ # at root, dbname, just return the last component
+ # of the path.
+ if uri2 and len(uri2) < 2:
+ return uri2[-1]
+ return ''
node = self.uri2object(cr, uid, pool, uri2)
if not node:
if cr: cr.close()