[CalendarServer-changes] [2790] CalendarServer/branches/users/cdaboo/implicit-2660/twistedcaldav/ directory/calendar.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Aug 8 13:07:34 PDT 2008
Revision: 2790
http://trac.macosforge.org/projects/calendarserver/changeset/2790
Author: cdaboo at apple.com
Date: 2008-08-08 13:07:33 -0700 (Fri, 08 Aug 2008)
Log Message:
-----------
Make sure default calendar is provisioned as opaque for freebusy.
Modified Paths:
--------------
CalendarServer/branches/users/cdaboo/implicit-2660/twistedcaldav/directory/calendar.py
Modified: CalendarServer/branches/users/cdaboo/implicit-2660/twistedcaldav/directory/calendar.py
===================================================================
--- CalendarServer/branches/users/cdaboo/implicit-2660/twistedcaldav/directory/calendar.py 2008-08-08 19:15:16 UTC (rev 2789)
+++ CalendarServer/branches/users/cdaboo/implicit-2660/twistedcaldav/directory/calendar.py 2008-08-08 20:07:33 UTC (rev 2790)
@@ -286,20 +286,24 @@
child = self.provisionChild(childName)
assert isinstance(child, CalDAVResource), "Child %r is not a %s: %r" % (childName, CalDAVResource.__name__, child)
- def setupChild(_):
- # Set calendar-free-busy-set on inbox
- inbox = self.getChild("inbox")
+ def setupFreeBusy(_):
+ # Default calendar is initially opaque to freebusy
+ child.writeDeadProperty(caldavxml.ScheduleCalendarTransp(caldavxml.Opaque()))
+
# FIXME: Shouldn't have to call provision() on another resource
# We cheat here because while inbox will auto-provision itself when located,
# we need to write a dead property to it pre-emptively.
- # Possible fix: store the free/busy set property on this resource instead.
+ # This will go away once we remove the free-busy-set property on inbox.
+
+ # Set calendar-free-busy-set on inbox
+ inbox = self.getChild("inbox")
inbox.provision()
inbox.writeDeadProperty(caldavxml.CalendarFreeBusySet(davxml.HRef(childURL)))
return self
d = child.createCalendarCollection()
- d.addCallback(setupChild)
+ d.addCallback(setupFreeBusy)
return d
def provisionChild(self, name):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080808/40d25182/attachment.html
More information about the calendarserver-changes
mailing list