[CalendarServer-changes] [2780] CalendarServer/branches/users/cdaboo/implicit-2660/twistedcaldav/ caldavxml.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu Aug 7 07:32:36 PDT 2008
Revision: 2780
http://trac.macosforge.org/projects/calendarserver/changeset/2780
Author: cdaboo at apple.com
Date: 2008-08-07 07:32:36 -0700 (Thu, 07 Aug 2008)
Log Message:
-----------
New properties from the latest caldav scheduling spec. Still need to hook up the logic for these.
Modified Paths:
--------------
CalendarServer/branches/users/cdaboo/implicit-2660/twistedcaldav/caldavxml.py
Modified: CalendarServer/branches/users/cdaboo/implicit-2660/twistedcaldav/caldavxml.py
===================================================================
--- CalendarServer/branches/users/cdaboo/implicit-2660/twistedcaldav/caldavxml.py 2008-08-07 14:24:30 UTC (rev 2779)
+++ CalendarServer/branches/users/cdaboo/implicit-2660/twistedcaldav/caldavxml.py 2008-08-07 14:32:36 UTC (rev 2780)
@@ -1566,13 +1566,45 @@
class CalendarFreeBusySet (CalDAVElement):
"""
The list of calendar URIs that contribute to free-busy for this principal's calendar user.
- (CalDAV-schedule, section x.x.x)
+ This was defined in the old caldav scheduling spec but has been removed from the new one.
+ We still need to support it for backwards compatibility.
"""
name = "calendar-free-busy-set"
hidden = True
allowed_children = { (davxml.dav_namespace, "href"): (0, None) }
+class ScheduleCalendarTransp (CalDAVTextElement):
+ """
+ Indicates whether a calendar should be used for freebusy lookups.
+ """
+ name = "schedule-calendar-transp"
+
+ allowed_children = {
+ (caldav_namespace, "opaque" ): (0, 1),
+ (caldav_namespace, "transparent" ): (0, 1),
+ }
+
+class Opaque (CalDAVElement):
+ """
+ Indicates that a calendar is used in freebusy lookups.
+ """
+ name = "opaque"
+
+class Transparent (CalDAVElement):
+ """
+ Indicates that a calendar is not used in freebusy lookups.
+ """
+ name = "transparent"
+
+class ScheduleDefaultCalendarURL (CalDAVTextElement):
+ """
+ A single href indicating which calendar is the default for scheduling.
+ """
+ name = "schedule-default-calendar-URL"
+
+ allowed_children = { (davxml.dav_namespace, "href"): (0, 1) }
+
class ScheduleInboxURL (CalDAVTextElement):
"""
A principal property to indicate the schedule INBOX for the principal.
@@ -1674,6 +1706,33 @@
"""
name = "schedule"
+class ScheduleState (CalDAVElement):
+ """
+ Indicates whether a scheduling message in an inbox has been processed
+ by the server.
+ """
+ name = "schedule-state"
+ protected = True
+
+ allowed_children = {
+ (caldav_namespace, "schedule-processed" ): (0, 1),
+ (caldav_namespace, "schedule-unprocessed" ): (0, 1),
+ }
+
+class ScheduleProcessed (CalDAVElement):
+ """
+ Indicates that a scheduling message in an inbox has been processed
+ by the server.
+ """
+ name = "schedule-processed"
+
+class ScheduleUnprocessed (CalDAVElement):
+ """
+ Indicates that a scheduling message in an inbox has not been processed
+ by the server.
+ """
+ name = "schedule-unprocessed"
+
##
# Extensions to davxml.ResourceType
##
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080807/75f3a486/attachment.html
More information about the calendarserver-changes
mailing list