summaryrefslogtreecommitdiff
path: root/addons/document_webdav/webdav_server.py
diff options
context:
space:
mode:
authorParth Gajjar (Open ERP) <pga@tinyerp.com>2013-05-08 18:16:39 +0530
committerParth Gajjar (Open ERP) <pga@tinyerp.com>2013-05-08 18:16:39 +0530
commit2c6aeae9112de0ec0d39f8cdbb0690747ecfaa77 (patch)
tree31ded50792f7f6fc6a9536c4d2d52e914a087c26 /addons/document_webdav/webdav_server.py
parent4ed6734b82f199952f672a812478b283342125ed (diff)
parent389f4911147b7cf5191b93e025c7b5c39d9e9eb6 (diff)
[MERGE]
bzr revid: pga@tinyerp.com-20130508124639-wfb2mpy15tnzs787
Diffstat (limited to 'addons/document_webdav/webdav_server.py')
-rw-r--r--addons/document_webdav/webdav_server.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/document_webdav/webdav_server.py b/addons/document_webdav/webdav_server.py
index 90b42fd8b5f..f67de272e29 100644
--- a/addons/document_webdav/webdav_server.py
+++ b/addons/document_webdav/webdav_server.py
@@ -36,7 +36,6 @@
import logging
import openerp
-from openerp import netsvc
from dav_fs import openerp_dav_handler
from openerp.tools.config import config
try:
@@ -609,7 +608,7 @@ try:
if base_path and base_path == '/':
dir_path = config.get_misc('static-http', 'dir_path', False)
else:
- dir_path = openerp.addons.get_module_resource('document_webdav','public_html')
+ dir_path = openerp.modules.module.get_module_resource('document_webdav','public_html')
# an _ugly_ hack: we put that dir back in tools.config.misc, so that
# the StaticHttpHandler can find its dir_path.
config.misc.setdefault('static-http',{})['dir_path'] = dir_path