[CalendarServer-changes] [1671] CalendarServer/trunk/twistedcaldav/directory

source_changes at macosforge.org source_changes at macosforge.org
Fri Jul 13 13:32:22 PDT 2007


Revision: 1671
          http://trac.macosforge.org/projects/calendarserver/changeset/1671
Author:   cdaboo at apple.com
Date:     2007-07-13 13:32:22 -0700 (Fri, 13 Jul 2007)

Log Message:
-----------
Add calendar-proxy capability to DAV header. Also make sure inbox-availability is in DAV on
a user's principal resource.

Modified Paths:
--------------
    CalDAVTester/trunk/scripts/tests/calendaruserproxy.xml
    CalendarServer/trunk/twistedcaldav/directory/calendaruserproxy.py
    CalendarServer/trunk/twistedcaldav/resource.py

Modified: CalDAVTester/trunk/scripts/tests/calendaruserproxy.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/calendaruserproxy.xml	2007-07-13 17:52:25 UTC (rev 1670)
+++ CalDAVTester/trunk/scripts/tests/calendaruserproxy.xml	2007-07-13 20:32:22 UTC (rev 1671)
@@ -34,6 +34,27 @@
 		</request>
 	</start>
 	
+	<test-suite name='OPTIONS header' ignore='no'>
+		<test name='1'>
+			<description>Look for options header tag</description>
+			<request print-response="no">
+				<method>OPTIONS</method>
+				<ruri>$principal:</ruri>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/calendaruserproxy/1.xml</filepath>
+				</data>
+				<verify>
+					<callback>header</callback>
+					<arg>
+						<name>header</name>
+						<value>*DAV$.*calendar-proxy.*</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+	</test-suite>
+
 	<test-suite name='Principal resources' ignore='no'>
 		<test name='1'>
 			<description>Look for proxy principals</description>

Modified: CalendarServer/trunk/twistedcaldav/directory/calendaruserproxy.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/calendaruserproxy.py	2007-07-13 17:52:25 UTC (rev 1670)
+++ CalendarServer/trunk/twistedcaldav/directory/calendaruserproxy.py	2007-07-13 20:32:22 UTC (rev 1671)
@@ -84,6 +84,7 @@
             "calendar-access",
             "calendar-schedule",
             "calendar-availability",
+            "calendar-proxy",
         )
 
     def __init__(self, path, parent, proxyType):

Modified: CalendarServer/trunk/twistedcaldav/resource.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/resource.py	2007-07-13 17:52:25 UTC (rev 1670)
+++ CalendarServer/trunk/twistedcaldav/resource.py	2007-07-13 20:32:22 UTC (rev 1671)
@@ -130,6 +130,7 @@
             "calendar-schedule",
             "calendar-availability",
             "inbox-availability",
+            "calendar-proxy",
         )
 
     liveProperties = DAVResource.liveProperties + (
@@ -493,6 +494,8 @@
             "calendar-access",
             "calendar-schedule",
             "calendar-availability",
+            "inbox-availability",
+            "calendar-proxy",
         )
 
     liveProperties = tuple(DAVPrincipalResource.liveProperties) + (

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070713/9e4e9223/attachment.html


More information about the calendarserver-changes mailing list