[Zope-CVS] CVS: Packages/Moztop/moztopsupport/dav - propfind.py:1.12

Sidnei da Silva sidnei@x3ng.com.br
Wed, 2 Apr 2003 15:57:51 -0500


Update of /cvs-repository/Packages/Moztop/moztopsupport/dav
In directory cvs.zope.org:/tmp/cvs-serv9826/moztopsupport/dav

Modified Files:
	propfind.py 
Log Message:
Changing everything to only have one xmlns

=== Packages/Moztop/moztopsupport/dav/propfind.py 1.11 => 1.12 ===
--- Packages/Moztop/moztopsupport/dav/propfind.py:1.11	Wed Apr  2 15:38:19 2003
+++ Packages/Moztop/moztopsupport/dav/propfind.py	Wed Apr  2 15:57:50 2003
@@ -66,10 +66,8 @@
         ms.setAttribute('xmlns', default_ns)
         response.appendChild(ms)
         re = response.createElement('response')
-        re.setAttribute('xmlns', default_ns)
         ms.appendChild(re)
         href = response.createElement('href')
-        href.setAttribute('xmlns', default_ns)
         re.appendChild(href)
         r_url = response.createTextNode(resource_url)
         href.appendChild(r_url)
@@ -77,20 +75,16 @@
         propname = xmldoc.getElementsByTagNameNS(default_ns, 'propname')
         if propname:
             pstat = response.createElement('propstat')
-            pstat.setAttribute('xmlns', default_ns)
             re.appendChild(pstat)
             prop = response.createElement('prop')
-            prop.setAttribute('xmlns', default_ns)
             pstat.appendChild(prop)
             for p in _avail_props:
                 view = queryView(self.context, \
                                  'DAV%s' % p, self.request, None)
                 if view is not None:
                     el = response.createElement('%s' % p )
-                    el.setAttribute('xmlns', default_ns)
                     prop.appendChild(el)
             status = response.createElement('status')
-            status.setAttribute('xmlns', default_ns)
             pstat.appendChild(status)
             text = response.createTextNode('HTTP/1.1 200 OK')
             status.appendChild(text)
@@ -125,13 +119,10 @@
 
         if avail:
             pstat = response.createElement('propstat')
-            pstat.setAttribute('xmlns', default_ns)
             re.appendChild(pstat)
             prop = response.createElement('prop')
-            prop.setAttribute('xmlns', default_ns)
             pstat.appendChild(prop)
             status = response.createElement('status')
-            status.setAttribute('xmlns', default_ns)
             pstat.appendChild(status)
             text = response.createTextNode('HTTP/1.1 200 OK')
             status.appendChild(text)
@@ -141,8 +132,6 @@
                 el = response.createElement('%s' % p )
                 if ns is not None:
                     el.setAttribute('xmlns', ns)
-                else:
-                    el.setAttribute('xmlns', default_ns)
                     
                 prop.appendChild(el)
                 try:
@@ -154,19 +143,15 @@
 
         if not_avail:
             pstat = response.createElement('propstat')
-            pstat.setAttribute('xmlns', default_ns)
             re.appendChild(pstat)
             prop = response.createElement('prop')
-            prop.setAttribute('xmlns', default_ns)
             pstat.appendChild(prop)
             status = response.createElement('status')
-            status.setAttribute('xmlns', default_ns)
             pstat.appendChild(status)
             text = response.createTextNode('HTTP/1.1 403 Forbidden')
             status.appendChild(text)
             for p in not_avail:
                 el = response.createElement('%s' % p )
-                el.setAttribute('xmlns', default_ns)
                 prop.appendChild(el)
 
         depth = self.getDepth()