summaryrefslogtreecommitdiff
path: root/addons/document_webdav/webdav.py
diff options
context:
space:
mode:
authorP. Christeas <p_christ@hol.gr>2010-07-29 16:39:38 +0300
committerP. Christeas <p_christ@hol.gr>2010-07-29 16:39:38 +0300
commit313ffd15504684dae8db26dbc021c84ea3e22637 (patch)
tree360a52a7aa11e6078e2d2db587f460f404084e06 /addons/document_webdav/webdav.py
parent7b37e49aa5f83c165f28d834667f4e3ed4091d75 (diff)
Doc Webdav: fix whitespace.
bzr revid: p_christ@hol.gr-20100729133938-hk90sqo6zuzvzbks
Diffstat (limited to 'addons/document_webdav/webdav.py')
-rw-r--r--addons/document_webdav/webdav.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/addons/document_webdav/webdav.py b/addons/document_webdav/webdav.py
index 8758723e232..1502ff204f8 100644
--- a/addons/document_webdav/webdav.py
+++ b/addons/document_webdav/webdav.py
@@ -30,14 +30,14 @@ import tools
super_mk_prop_response = PROPFIND.mk_prop_response
-def mk_prop_response(self, uri, good_props, bad_props, doc):
- """ make a new <prop> result element
+def mk_prop_response(self, uri, good_props, bad_props, doc):
+ """ make a new <prop> result element
We differ between the good props and the bad ones for
each generating an extra <propstat>-Node (for each error
one, that means).
-
- """
+
+ """
re=doc.createElement("D:response")
# append namespaces to response
nsnum=0
@@ -47,7 +47,7 @@ def mk_prop_response(self, uri, good_props, bad_props, doc):
for nsname in namespaces:
re.setAttribute("xmlns:ns"+str(nsnum),nsname)
nsnum=nsnum+1
-
+
# write href information
uparts=urlparse.urlparse(uri)
fileloc=uparts[2]
@@ -90,7 +90,7 @@ def mk_prop_response(self, uri, good_props, bad_props, doc):
pe.appendChild(ve)
gp.appendChild(pe)
-
+
ps.appendChild(gp)
s=doc.createElement("D:status")
t=doc.createTextNode("HTTP/1.1 200 OK")
@@ -113,11 +113,11 @@ def mk_prop_response(self, uri, good_props, bad_props, doc):
ns_prefix='D:'
else:
ns_prefix="ns"+str(self.namespaces.index(ns))+":"
-
+
for p in bad_props[ecode][ns]:
pe=doc.createElement(ns_prefix+str(p))
bp.appendChild(pe)
-
+
s=doc.createElement("D:status")
t=doc.createTextNode(utils.gen_estring(ecode))
s.appendChild(t)
@@ -126,10 +126,10 @@ def mk_prop_response(self, uri, good_props, bad_props, doc):
# return the new response element
return re
-
+
def mk_propname_response(self,uri,propnames,doc):
- """ make a new <prop> result element for a PROPNAME request
+ """ make a new <prop> result element for a PROPNAME request
This will simply format the propnames list.
propnames should have the format {NS1 : [prop1, prop2, ...], NS2: ...}