summaryrefslogtreecommitdiff
path: root/addons/document_webdav/webdav.py
diff options
context:
space:
mode:
authorRHA (Open ERP) <>2010-08-19 17:21:57 +0530
committeruco (Open ERP) <uco@tinyerp.com>2010-08-19 17:21:57 +0530
commitd5ad0b8ff144886a2a5b3766a297b72f59633184 (patch)
tree41b9ddcbc43c498f630a7455c46c4dc3c69fc62f /addons/document_webdav/webdav.py
parent2eaf0ee8a420b5273e173e5069355a17c874349e (diff)
[CLEAN]: Removed commented codes, unnecessary spaces.
bzr revid: uco@tinyerp.com-20100819115157-sfsmbnjdgpp4wl12
Diffstat (limited to 'addons/document_webdav/webdav.py')
-rw-r--r--addons/document_webdav/webdav.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/addons/document_webdav/webdav.py b/addons/document_webdav/webdav.py
index 10a7f9db4e6..3b6cf582067 100644
--- a/addons/document_webdav/webdav.py
+++ b/addons/document_webdav/webdav.py
@@ -57,10 +57,10 @@ def mk_prop_response(self, uri, good_props, bad_props, doc):
def _prop_child(xnode, ns, prop, value):
"""Append a property xml node to xnode, with <prop>value</prop>
-
+
And a little smarter than that, it will consider namespace and
also allow nested properties etc.
-
+
:param ns the namespace of the <prop/> node
:param prop the name of the property
:param value the value. Can be:
@@ -89,7 +89,7 @@ def mk_prop_response(self, uri, good_props, bad_props, doc):
xnode.appendChild(pe)
def _prop_elem_child(pnode, pns, v, pns_prefix):
-
+
if isinstance(v, list):
for vit in v:
_prop_elem_child(pnode, pns, vit, pns_prefix)
@@ -102,8 +102,6 @@ def mk_prop_response(self, uri, good_props, bad_props, doc):
elif v[1] in namespaces:
ns_prefix="ns"+str(namespaces.index(v[1]))+":"
else:
- # namespaces.append(v[1])
- # nsnum += 1
ns_prefix="ns"+str(nsnum)+":"
need_ns = True