[Zope-CVS] CVS: Packages/Moztop/moztopsupport/dav - propfind.py:1.6
Sidnei da Silva
sidnei@x3ng.com.br
Tue, 25 Mar 2003 15:04:07 -0500
Update of /cvs-repository/Packages/Moztop/moztopsupport/dav
In directory cvs.zope.org:/tmp/cvs-serv23424/dav
Modified Files:
propfind.py
Log Message:
Use namespaces!
=== Packages/Moztop/moztopsupport/dav/propfind.py 1.5 => 1.6 ===
--- Packages/Moztop/moztopsupport/dav/propfind.py:1.5 Mon Mar 24 17:23:04 2003
+++ Packages/Moztop/moztopsupport/dav/propfind.py Tue Mar 25 15:04:04 2003
@@ -59,7 +59,7 @@
self.setDepth(depth)
xmldoc = minidom.parse(data)
- source = xmldoc.getElementsByTagName('prop')
+ source = xmldoc.getElementsByTagNameNS('DAV:', 'prop')
if not source:
# possibly allprop
body = self._buildBody(self._buildProps(_avail_props))
@@ -72,10 +72,10 @@
if e.nodeType == e.ELEMENT_NODE]
not_avail = []
for node in childs:
- tagname = node.tagName
- view = queryView(self.context, 'DAV%s' % tagname, self.request, None)
+ localname = node.localName
+ view = queryView(self.context, 'DAV%s' % localname, self.request, None)
if view is None:
- not_avail.append(tagname)
+ not_avail.append(localname)
else:
view = removeAllProxies(view)
response += str(view)