[CalendarServer-changes] [6705] CalDAVTester/trunk

source_changes at macosforge.org source_changes at macosforge.org
Tue Dec 21 12:23:27 PST 2010


Revision: 6705
          http://trac.macosforge.org/projects/calendarserver/changeset/6705
Author:   cdaboo at apple.com
Date:     2010-12-21 12:23:22 -0800 (Tue, 21 Dec 2010)
Log Message:
-----------
Allow property test on a specific resource in a response.

Modified Paths:
--------------
    CalDAVTester/trunk/src/caldavtest.py
    CalDAVTester/trunk/verifiers/propfindItems.py

Modified: CalDAVTester/trunk/src/caldavtest.py
===================================================================
--- CalDAVTester/trunk/src/caldavtest.py	2010-12-21 01:23:50 UTC (rev 6704)
+++ CalDAVTester/trunk/src/caldavtest.py	2010-12-21 20:23:22 UTC (rev 6705)
@@ -639,7 +639,7 @@
                             temp = temp.strip()
                             value += temp
                     else:
-                        value = ""
+                        value = child.text
                     
                     if fqname == propertyname:
                         return value

Modified: CalDAVTester/trunk/verifiers/propfindItems.py
===================================================================
--- CalDAVTester/trunk/verifiers/propfindItems.py	2010-12-21 01:23:50 UTC (rev 6704)
+++ CalDAVTester/trunk/verifiers/propfindItems.py	2010-12-21 20:23:22 UTC (rev 6705)
@@ -28,6 +28,7 @@
 
         # If no status verification requested, then assume all 2xx codes are OK
         ignores = args.get("ignore", [])
+        only = args.get("only", [])
 
         # Check how many responses are returned
         counts = args.get("count", [])
@@ -119,6 +120,8 @@
             href = href.text
             if href in ignores:
                 continue
+            if only and href not in only:
+                continue
             
             if count is not None:
                 ctr += 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20101221/0fe8c898/attachment.html>


More information about the calendarserver-changes mailing list