[Zope3-checkins] SVN: Zope3/branches/isarsprint-dav-work/src/zope/app/dav/propfind.py It may have worked in minidom, but officially foreign doc nodes need to be

Martijn Pieters mj at zopatista.com
Mon Oct 11 06:36:54 EDT 2004


Log message for revision 27956:
  It may have worked in minidom, but officially foreign doc nodes need to be
  imported before appending them. If minidom ever was made more compliant, a
  WRONG_DOCUMENT_ERR exception would be thrown otherwise.
  


Changed:
  U   Zope3/branches/isarsprint-dav-work/src/zope/app/dav/propfind.py


-=-
Modified: Zope3/branches/isarsprint-dav-work/src/zope/app/dav/propfind.py
===================================================================
--- Zope3/branches/isarsprint-dav-work/src/zope/app/dav/propfind.py	2004-10-11 10:35:31 UTC (rev 27955)
+++ Zope3/branches/isarsprint-dav-work/src/zope/app/dav/propfind.py	2004-10-11 10:36:54 UTC (rev 27956)
@@ -107,7 +107,7 @@
             responses = parsed.getElementsByTagNameNS(
                 self.default_ns, 'response')
             for r in responses:
-                ms.appendChild(r)
+                ms.appendChild(ms.ownerDocument.importNode(r, True))
 
     def _handleProp(self, source):
         props = {}



More information about the Zope3-Checkins mailing list