summaryrefslogtreecommitdiff
path: root/addons/document_webdav/test_davclient.py
diff options
context:
space:
mode:
authorHardik <hsa@tinyerp.com>2012-07-13 10:59:57 +0530
committerHardik <hsa@tinyerp.com>2012-07-13 10:59:57 +0530
commit770dc652aff43e9fc3f021f66e8bd7cf7af3496e (patch)
tree7827a330563f22b93a748a6a2f6604682a03a9c6 /addons/document_webdav/test_davclient.py
parenta710d7b11c5b01b53e10555f00b32b75b7c8cade (diff)
[IMP]Document (ftp,webdev) : Warning Messages are changed
bzr revid: hsa@tinyerp.com-20120713052957-iie8hdqbde1g3qz9
Diffstat (limited to 'addons/document_webdav/test_davclient.py')
-rwxr-xr-xaddons/document_webdav/test_davclient.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/addons/document_webdav/test_davclient.py b/addons/document_webdav/test_davclient.py
index a4dda231bd8..a0b498f61d0 100755
--- a/addons/document_webdav/test_davclient.py
+++ b/addons/document_webdav/test_davclient.py
@@ -278,7 +278,7 @@ class addAuthTransport:
return self._parse_response(h.getfile(), sock, resp)
- raise ProtocolError(host+handler, 403, "No authentication",'')
+ raise ProtocolError(host+handler, 403, "No authentication.",'')
class PersistentAuthTransport(addAuthTransport,PersistentTransport):
pass
@@ -402,7 +402,7 @@ class DAVClient(object):
r1 = conn.getresponse()
except httplib.BadStatusLine, bsl:
log.warning("Bad status line: %s", bsl.line)
- raise Exception('Bad status line')
+ raise Exception('Bad status line.')
if r1.status == 401: # and r1.headers:
if 'www-authenticate' in r1.msg:
(atype,realm) = r1.msg.getheader('www-authenticate').split(' ',1)
@@ -437,7 +437,7 @@ class DAVClient(object):
doc = xml.dom.minidom.parseString(data1)
_logger.debug("XML Body:\n %s", doc.toprettyxml(indent="\t"))
except Exception:
- _logger.warning("could not print xml", exc_info=True)
+ _logger.warning("cannot print xml", exc_info=True)
pass
conn.close()
return r1.status, r1.msg, data1
@@ -651,7 +651,7 @@ class DAVClient(object):
if isinstance(crange, tuple):
crange = [crange,]
if not isinstance(crange, list):
- raise TypeError("Range must be a tuple or list of tuples")
+ raise TypeError("Range must be a tuple or list of tuples.")
rs = []
for r in crange:
rs.append('%d-%d' % r)
@@ -689,7 +689,7 @@ class DAVClient(object):
"""
hdrs = { }
if not (body or srcpath):
- raise ValueError("PUT must have something to send")
+ raise ValueError("PUT must have something to send.")
if (not body) and srcpath:
fd = open(srcpath, 'rb')
body = fd.read()