[CalendarServer-changes] [460] CalendarServer/branches/users/wsanchez/provisioning/twistedcaldav/ resource.py

source_changes at macosforge.org source_changes at macosforge.org
Tue Nov 14 19:32:42 PST 2006


Revision: 460
          http://trac.macosforge.org/projects/calendarserver/changeset/460
Author:   wsanchez at apple.com
Date:     2006-11-14 19:32:41 -0800 (Tue, 14 Nov 2006)

Log Message:
-----------
Bring principalSearchPropertySet up to CalendarPrincipalCollectionResource from CalendarPrincipalCollectionFile.

Modified Paths:
--------------
    CalendarServer/branches/users/wsanchez/provisioning/twistedcaldav/resource.py

Modified: CalendarServer/branches/users/wsanchez/provisioning/twistedcaldav/resource.py
===================================================================
--- CalendarServer/branches/users/wsanchez/provisioning/twistedcaldav/resource.py	2006-11-15 03:14:48 UTC (rev 459)
+++ CalendarServer/branches/users/wsanchez/provisioning/twistedcaldav/resource.py	2006-11-15 03:32:41 UTC (rev 460)
@@ -563,6 +563,28 @@
         result.append(davxml.Report(davxml.PrincipalSearchPropertySet(),))
         return result
 
+    def principalSearchPropertySet(self):
+        return davxml.PrincipalSearchPropertySet(
+            davxml.PrincipalSearchProperty(
+                davxml.PropertyContainer(
+                    davxml.DisplayName()
+                ),
+                davxml.Description(
+                    davxml.PCDATAElement("Display Name"),
+                    **{"xml:lang":"en"}
+                ),
+            ),
+            davxml.PrincipalSearchProperty(
+                davxml.PropertyContainer(
+                    caldavxml.CalendarUserAddressSet()
+                ),
+                davxml.Description(
+                    davxml.PCDATAElement("Calendar User Addresses"),
+                    **{"xml:lang":"en"}
+                ),
+            ),
+        )
+
 def findAnyCalendarUser(request, address):
     """
     Find the calendar user principal associated with the specified calendar

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20061114/36bf25f3/attachment.html


More information about the calendarserver-changes mailing list