[Zope-CVS] CVS: Packages/Moztop/moztopsupport/dav - propfind.py:1.10 views.py:1.7
Sidnei da Silva
sidnei@x3ng.com.br
Wed, 2 Apr 2003 14:56:23 -0500
Update of /cvs-repository/Packages/Moztop/moztopsupport/dav
In directory cvs.zope.org:/tmp/cvs-serv1409/moztopsupport/dav
Modified Files:
propfind.py views.py
Log Message:
Humm... did i forgot something?
=== Packages/Moztop/moztopsupport/dav/propfind.py 1.9 => 1.10 ===
--- Packages/Moztop/moztopsupport/dav/propfind.py:1.9 Sat Mar 29 15:16:02 2003
+++ Packages/Moztop/moztopsupport/dav/propfind.py Wed Apr 2 14:56:22 2003
@@ -128,16 +128,19 @@
status.appendChild(text)
for p in avail.keys():
ns = props_ns.get(p, None)
+
if ns is not None:
el = response.createElementNS(ns, '%s' % p )
el.setAttribute('xmlns', ns)
else:
el = response.createElementNS(default_ns, 'D:%s' % p )
prop.appendChild(el)
+
try:
value = minidom.parseString(avail[p]).documentElement
except:
value = response.createTextNode(avail[p])
+
el.appendChild(value)
if not_avail:
=== Packages/Moztop/moztopsupport/dav/views.py 1.6 => 1.7 ===
--- Packages/Moztop/moztopsupport/dav/views.py:1.6 Wed Apr 2 14:34:01 2003
+++ Packages/Moztop/moztopsupport/dav/views.py Wed Apr 2 14:56:22 2003
@@ -62,7 +62,7 @@
class DAVResourceType(BrowserView):
def __str__(self):
- value = queryAdapter(self.context, IReadContainer)
+ value = queryAdapter(self.context, IReadContainer, None)
xml = minidom.Document()
if value is not None:
node = xml.createElementNS('DAV:', 'D:collection')