[CalendarServer-changes] [994]
CalendarServer/trunk/twistedcaldav/directory/aggregate.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Jan 8 20:15:21 PST 2007
Revision: 994
http://trac.macosforge.org/projects/calendarserver/changeset/994
Author: wsanchez at apple.com
Date: 2007-01-08 20:15:20 -0800 (Mon, 08 Jan 2007)
Log Message:
-----------
Define calendarHomesCollection as a property so we can set it on contained services
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/directory/aggregate.py
Modified: CalendarServer/trunk/twistedcaldav/directory/aggregate.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/directory/aggregate.py 2007-01-09 04:05:12 UTC (rev 993)
+++ CalendarServer/trunk/twistedcaldav/directory/aggregate.py 2007-01-09 04:15:20 UTC (rev 994)
@@ -69,6 +69,20 @@
self.realmName = realmName
self._recordTypes = recordTypes
+ #
+ # Define calendarHomesCollection as a property so we can set it on contained services
+ # See CalendarHomeProvisioningFile.__init__()
+ #
+ def _getCalendarHomesCollection(self):
+ return self._calendarHomesCollection
+
+ def _setCalendarHomesCollection(self, value):
+ for service in self._recordTypes.values():
+ service.calendarHomesCollection = value
+ self._calendarHomesCollection = value
+
+ calendarHomesCollection = property(_getCalendarHomesCollection, _setCalendarHomesCollection)
+
def recordTypes(self):
return set(self._recordTypes)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070108/a5bc9590/attachment.html
More information about the calendarserver-changes
mailing list