Dear all,
        I've run Apple Corps Apache licenced CalDav test suite against Bongo.
I'm going through some of the code and fixing what I can.  Here's the
first half a patch.  I need to figure out how to compute the content
length (any tips).  The solution here is hardcoded and passes the test
suite.

--
Aidan
Index: PropfindView.py
===================================================================
--- PropfindView.py	(revision 705)
+++ PropfindView.py	(working copy)
@@ -100,6 +100,8 @@ class PropfindHandler(SundialHandler):
 
             elif bongo.commonweb.ElementTree.normalize(t.tag) == 'dav::getetag' and not is_calendar:
                 et.SubElement(prop_tag, 'getetag').text = '"%s"' % md5.new(icsdata.encode('ascii', 'replace')).hexdigest()
+            elif bongo.commonweb.ElementTree.normalize(t.tag) == 'dav::getcontentlength':
+                et.SubElement(prop_tag, 'getcontentlength').text = '0'
 
         et.SubElement(propstat_tag, 'status').text = "HTTP/1.1 200 OK"
 
_______________________________________________
Bongo-devel mailing list
[email protected]
https://mail.gna.org/listinfo/bongo-devel

Reply via email to