--- /usr/lib/pymodules/python2.6/DAV/propfind.py.orig	2011-06-23 13:24:52.000000000 +0000
+++ /usr/lib/pymodules/python2.6/DAV/propfind.py	2011-06-23 13:25:46.000000000 +0000
@@ -229,12 +229,13 @@
             pr.setAttribute("xmlns:"+nsp,ns)
             nsnum=nsnum+1
 
-        # write propertynames
-        for p in plist:
-            pe=doc.createElement(nsp+":"+p)
-            pr.appendChild(pe)
+            # write propertynames
+            for p in plist:
+                pe=doc.createElement(nsp+":"+p)
+                pr.appendChild(pe)
+
+            ps.appendChild(pr)
 
-        ps.appendChild(pr)
         re.appendChild(ps)
 
         return re
