[CalendarServer-changes] [5202] CalendarServer/branches/users/cdaboo/shared-calendars-5187

source_changes at macosforge.org source_changes at macosforge.org
Wed Feb 24 19:19:52 PST 2010


Revision: 5202
          http://trac.macosforge.org/projects/calendarserver/changeset/5202
Author:   cdaboo at apple.com
Date:     2010-02-24 19:19:49 -0800 (Wed, 24 Feb 2010)
Log Message:
-----------
Config option for sharing.

Modified Paths:
--------------
    CalendarServer/branches/users/cdaboo/shared-calendars-5187/conf/caldavd-apple.plist
    CalendarServer/branches/users/cdaboo/shared-calendars-5187/conf/caldavd-test.plist
    CalendarServer/branches/users/cdaboo/shared-calendars-5187/conf/caldavd.plist
    CalendarServer/branches/users/cdaboo/shared-calendars-5187/twistedcaldav/stdconfig.py

Modified: CalendarServer/branches/users/cdaboo/shared-calendars-5187/conf/caldavd-apple.plist
===================================================================
--- CalendarServer/branches/users/cdaboo/shared-calendars-5187/conf/caldavd-apple.plist	2010-02-25 01:49:44 UTC (rev 5201)
+++ CalendarServer/branches/users/cdaboo/shared-calendars-5187/conf/caldavd-apple.plist	2010-02-25 03:19:49 UTC (rev 5202)
@@ -477,7 +477,11 @@
     <key>EnablePrivateEvents</key>
     <true/>
 
+    <!-- Shared Calendars -->
+    <key>EnableSharing</key>
+    <true/>
 
+
     <!--
         Miscellaneous items
       -->

Modified: CalendarServer/branches/users/cdaboo/shared-calendars-5187/conf/caldavd-test.plist
===================================================================
--- CalendarServer/branches/users/cdaboo/shared-calendars-5187/conf/caldavd-test.plist	2010-02-25 01:49:44 UTC (rev 5201)
+++ CalendarServer/branches/users/cdaboo/shared-calendars-5187/conf/caldavd-test.plist	2010-02-25 03:19:49 UTC (rev 5202)
@@ -669,7 +669,11 @@
     <key>EnableTimezoneService</key>
     <true/>
 
+    <!-- Shared Calendars -->
+    <key>EnableSharing</key>
+    <true/>
 
+
     <!--
         Miscellaneous items
       -->

Modified: CalendarServer/branches/users/cdaboo/shared-calendars-5187/conf/caldavd.plist
===================================================================
--- CalendarServer/branches/users/cdaboo/shared-calendars-5187/conf/caldavd.plist	2010-02-25 01:49:44 UTC (rev 5201)
+++ CalendarServer/branches/users/cdaboo/shared-calendars-5187/conf/caldavd.plist	2010-02-25 03:19:49 UTC (rev 5202)
@@ -466,7 +466,11 @@
     <key>EnablePrivateEvents</key>
     <true/>
 
+    <!-- Shared Calendars -->
+    <key>EnableSharing</key>
+    <true/>
 
+
     <!--
         Miscellaneous items
       -->

Modified: CalendarServer/branches/users/cdaboo/shared-calendars-5187/twistedcaldav/stdconfig.py
===================================================================
--- CalendarServer/branches/users/cdaboo/shared-calendars-5187/twistedcaldav/stdconfig.py	2010-02-25 01:49:44 UTC (rev 5201)
+++ CalendarServer/branches/users/cdaboo/shared-calendars-5187/twistedcaldav/stdconfig.py	2010-02-25 03:19:49 UTC (rev 5202)
@@ -330,6 +330,7 @@
     "EnableDropBox"           : False, # Calendar Drop Box
     "EnablePrivateEvents"     : False, # Private Events
     "EnableTimezoneService"   : False, # Timezone service
+    "EnableSharing"           : False, # Sharing
 
     #
     # Web-based administration
@@ -898,6 +899,13 @@
                     log.info("iMIP %s password not found in keychain" %
                         (direction,))
 
+def _updateSharing(configDict):
+    #
+    # FIXME: Use the config object instead of doing this here
+    #
+    from twistedcaldav.resource import CalendarPrincipalResource
+    CalendarPrincipalResource.enableSharing(configDict.EnableSharing)
+
 def _updatePartitions(configDict):
     #
     # Partitions
@@ -927,6 +935,7 @@
     _updateLogLevels,
     _updateNotifications,
     _updateScheduling,
+    _updateSharing,
     _updatePartitions,
     )
     
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100224/28614750/attachment.html>


More information about the calendarserver-changes mailing list