[CalendarServer-changes] [742] CalendarServer/branches/caldavd-twistd-plugin-2/twistedcaldav/config. py

source_changes at macosforge.org source_changes at macosforge.org
Thu Dec 7 07:21:31 PST 2006


Revision: 742
          http://trac.macosforge.org/projects/calendarserver/changeset/742
Author:   dreid at apple.com
Date:     2006-12-07 07:21:30 -0800 (Thu, 07 Dec 2006)

Log Message:
-----------
Merge forward

Added Paths:
-----------
    CalendarServer/branches/caldavd-twistd-plugin-2/twistedcaldav/config.py

Copied: CalendarServer/branches/caldavd-twistd-plugin-2/twistedcaldav/config.py (from rev 740, CalendarServer/branches/caldavd-twistd-plugin/twistedcaldav/config.py)
===================================================================
--- CalendarServer/branches/caldavd-twistd-plugin-2/twistedcaldav/config.py	                        (rev 0)
+++ CalendarServer/branches/caldavd-twistd-plugin-2/twistedcaldav/config.py	2006-12-07 15:21:30 UTC (rev 742)
@@ -0,0 +1,64 @@
+##
+# Copyright (c) 2005-2006 Apple Computer, Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# DRI: David Reid, dreid at apple.com
+##
+
+import os
+
+from twistedcaldav.py.plistlib import readPlist
+
+DEFAULTPLISTFILE = '/etc/caldavd/caldavd.plist'
+
+DEFAULTS = {
+    'CreateAccounts': False,
+    'DirectoryService': {'params': {'node': '/Search'},
+                         'type': 'OpenDirectoryService'},
+    'DocumentRoot': '/Library/CalendarServer/Documents',
+    'DropBoxEnabled': True,
+    'DropBoxInheritedACLs': True,
+    'DropBoxName': 'dropbox',
+    'ErrorLogFile': '/var/log/caldavd/error.log',
+    'ManholePort': 0,
+    'MaximumAttachmentSizeBytes': 1048576,
+    'NotificationCollectionName': 'notifications',
+    'NotificationsEnabled': False,
+    'PIDFile': '/var/run/caldavd.pid',
+    'Port': 8008,
+    'Repository': '/etc/caldavd/repository.xml',
+    'ResetAccountACLs': False,
+    'RunStandalone': True,
+    'SSLCertificate': '/etc/certificates/Default.crt',
+    'SSLEnable': False,
+    'SSLOnly': False,
+    'SSLPort': 8443,
+    'SSLPrivateKey': '/etc/certificates/Default.key',
+    'ServerLogFile': '/var/log/caldavd/server.log',
+    'ServerStatsFile': '/Library/CalendarServer/Documents/stats.plist',
+    'UserQuotaBytes': 104857600,
+    'Verbose': False,
+    'twistdLocation': '/usr/share/caldavd/bin/twistd'}
+
+globs = globals()
+globs.update(DEFAULTS.copy())
+
+def parseConfig(configFile):
+    global globs
+    if os.path.exists(configFile):
+        plist = readPlist(configFile)
+        globs.update(plist)
+
+
+    

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20061207/ce48441a/attachment.html


More information about the calendarserver-changes mailing list