[CalendarServer-changes] [5601] CalendarServer/branches/users/cdaboo/more-sharing-5591/twistedcaldav /static.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri May 14 12:41:13 PDT 2010
Revision: 5601
http://trac.macosforge.org/projects/calendarserver/changeset/5601
Author: cdaboo at apple.com
Date: 2010-05-14 12:41:08 -0700 (Fri, 14 May 2010)
Log Message:
-----------
Restore old global address book behavior.
Modified Paths:
--------------
CalendarServer/branches/users/cdaboo/more-sharing-5591/twistedcaldav/static.py
Modified: CalendarServer/branches/users/cdaboo/more-sharing-5591/twistedcaldav/static.py
===================================================================
--- CalendarServer/branches/users/cdaboo/more-sharing-5591/twistedcaldav/static.py 2010-05-14 16:19:04 UTC (rev 5600)
+++ CalendarServer/branches/users/cdaboo/more-sharing-5591/twistedcaldav/static.py 2010-05-14 19:41:08 UTC (rev 5601)
@@ -1474,8 +1474,19 @@
result = super(AddressBookHomeFile, self).provision()
if config.Sharing.Enabled and config.Sharing.AddressBooks.Enabled:
self.provisionShares()
+ self.provisionLinks()
return result
+ def provisionLinks(self):
+
+ if not hasattr(self, "_provisionedLinks"):
+ if config.GlobalAddressBook.Enabled:
+ self.putChild(
+ config.GlobalAddressBook.Name,
+ LinkResource(self, joinURL("/", config.GlobalAddressBook.Name, "/")),
+ )
+ self._provisionedLinks = True
+
def provisionChild(self, name):
if config.Sharing.Enabled and config.Sharing.AddressBooks.Enabled and not config.Sharing.Calendars.Enabled:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100514/48164562/attachment.html>
More information about the calendarserver-changes
mailing list