[CalendarServer-changes] [5999] CalendarServer/trunk/twistedcaldav/sharing.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Aug 6 10:40:12 PDT 2010
Revision: 5999
http://trac.macosforge.org/projects/calendarserver/changeset/5999
Author: cdaboo at apple.com
Date: 2010-08-06 10:40:11 -0700 (Fri, 06 Aug 2010)
Log Message:
-----------
Make sure schedule-calendar-transp is initially transparent on shared calendars.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/sharing.py
Modified: CalendarServer/trunk/twistedcaldav/sharing.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/sharing.py 2010-08-06 17:39:54 UTC (rev 5998)
+++ CalendarServer/trunk/twistedcaldav/sharing.py 2010-08-06 17:40:11 UTC (rev 5999)
@@ -989,11 +989,15 @@
self.sharesDB().addOrUpdateRecord(share)
# Set per-user displayname to whatever was given
+ sharedCollection = (yield request.locateResource(hostUrl))
+ ownerPrincipal = (yield self.ownerPrincipal(request))
+ sharedCollection.setVirtualShare(ownerPrincipal, oldShare)
if displayname:
- sharedCollection = (yield request.locateResource(hostUrl))
- ownerPrincipal = (yield self.ownerPrincipal(request))
- sharedCollection.setVirtualShare(ownerPrincipal, oldShare)
yield sharedCollection.writeProperty(davxml.DisplayName.fromString(displayname), request)
+
+ # Calendars always start out transparent
+ if sharedCollection.isCalendarCollection():
+ yield sharedCollection.writeProperty(caldavxml.ScheduleCalendarTransp(caldavxml.Transparent()), request)
# Return the URL of the shared collection
returnValue(XMLResponse(
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100806/c5eddd34/attachment.html>
More information about the calendarserver-changes
mailing list