[CalendarServer-changes] [5844] CalDAVTester/trunk/src/caldavtest.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Jul 6 12:15:57 PDT 2010
Revision: 5844
http://trac.macosforge.org/projects/calendarserver/changeset/5844
Author: cdaboo at apple.com
Date: 2010-07-06 12:15:56 -0700 (Tue, 06 Jul 2010)
Log Message:
-----------
Also needed for pre-condition test.
Modified Paths:
--------------
CalDAVTester/trunk/src/caldavtest.py
Modified: CalDAVTester/trunk/src/caldavtest.py
===================================================================
--- CalDAVTester/trunk/src/caldavtest.py 2010-07-06 19:15:15 UTC (rev 5843)
+++ CalDAVTester/trunk/src/caldavtest.py 2010-07-06 19:15:56 UTC (rev 5844)
@@ -35,6 +35,7 @@
import socket
import src.xmlDefs
import time
+from xml.dom.expatbuilder import TEXT_NODE
import xml.dom.minidom
STATUSTXT_WIDTH = 60
@@ -641,7 +642,7 @@
# Copy sub-element data as text into one long string and strip leading/trailing space
value = ""
for p in child._get_childNodes():
- temp = p.toprettyxml("", "")
+ temp = p.data if p.nodeType == TEXT_NODE else p.toprettyxml("", "")
temp = temp.strip()
value += temp
else:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100706/e60572d7/attachment.html>
More information about the calendarserver-changes
mailing list