[Zope-CVS] CVS: Packages/Moztop/moztopsupport/dav - views.py:1.8
Sidnei da Silva
sidnei@x3ng.com.br
Wed, 2 Apr 2003 15:11:51 -0500
Update of /cvs-repository/Packages/Moztop/moztopsupport/dav
In directory cvs.zope.org:/tmp/cvs-serv3506/moztopsupport/dav
Modified Files:
views.py
Log Message:
Humm.. some versions of PyXML wants a namespace
=== Packages/Moztop/moztopsupport/dav/views.py 1.7 => 1.8 ===
--- Packages/Moztop/moztopsupport/dav/views.py:1.7 Wed Apr 2 14:56:22 2003
+++ Packages/Moztop/moztopsupport/dav/views.py Wed Apr 2 15:11:50 2003
@@ -65,7 +65,8 @@
value = queryAdapter(self.context, IReadContainer, None)
xml = minidom.Document()
if value is not None:
- node = xml.createElementNS('DAV:', 'D:collection')
+ node = xml.createElement('collection')
+ node.setAttribute('xmlns', 'DAV:')
xml.appendChild(node)
doc = xml.documentElement
if doc is None: