summaryrefslogtreecommitdiff
path: root/addons/document_webdav/webdav_server.py
diff options
context:
space:
mode:
authorsbh (Open ERP) <sbh@tinyerp.com>2010-11-12 17:19:46 +0530
committersbh (Open ERP) <sbh@tinyerp.com>2010-11-12 17:19:46 +0530
commit3389c99ee670a59571def5d1ac670d521ce7d6b5 (patch)
tree281ccbc5cd60636e2e0df43197d783f2a31a59a3 /addons/document_webdav/webdav_server.py
parent0e5cbfe79af73bee4895ebe244e6cca94ac97969 (diff)
[Fix] caldav,document,document_ftp,document_webdav: fix buildbot warnings
bzr revid: sbh@tinyerp.com-20101112114946-u19wkxzh1vj33sol
Diffstat (limited to 'addons/document_webdav/webdav_server.py')
-rw-r--r--addons/document_webdav/webdav_server.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/addons/document_webdav/webdav_server.py b/addons/document_webdav/webdav_server.py
index 4e10c84b8f5..0e5973c95b3 100644
--- a/addons/document_webdav/webdav_server.py
+++ b/addons/document_webdav/webdav_server.py
@@ -28,7 +28,6 @@
import netsvc
-import tools
from dav_fs import openerp_dav_handler
from tools.config import config
from DAV.WebDAVServer import DAVRequestHandler
@@ -37,7 +36,7 @@ from BaseHTTPServer import BaseHTTPRequestHandler
import urlparse
import urllib
import re
-from string import atoi,split
+from string import atoi
from DAV.errors import *
# from DAV.constants import DAV_VERSION_1, DAV_VERSION_2
@@ -99,7 +98,6 @@ class DAVHandler(HttpOptions, FixSendError, DAVRequestHandler):
""" Our uri scheme removes the /webdav/ component from there, so we
need to mangle the header, too.
"""
- dest = self.headers['Destination']
up = urlparse.urlparse(urllib.unquote(self.headers['Destination']))
if up.path.startswith(self.davpath):
self.headers['Destination'] = up.path[len(self.davpath):]