[CalendarServer-changes] [6638] CalendarServer/branches/users/wsanchez/deployment/bin/caldav_export

source_changes at macosforge.org source_changes at macosforge.org
Mon Nov 15 13:44:46 PST 2010


Revision: 6638
          http://trac.macosforge.org/projects/calendarserver/changeset/6638
Author:   cdaboo at apple.com
Date:     2010-11-15 13:44:43 -0800 (Mon, 15 Nov 2010)
Log Message:
-----------
Init the augments service.

Modified Paths:
--------------
    CalendarServer/branches/users/wsanchez/deployment/bin/caldav_export

Modified: CalendarServer/branches/users/wsanchez/deployment/bin/caldav_export
===================================================================
--- CalendarServer/branches/users/wsanchez/deployment/bin/caldav_export	2010-11-15 20:58:47 UTC (rev 6637)
+++ CalendarServer/branches/users/wsanchez/deployment/bin/caldav_export	2010-11-15 21:44:43 UTC (rev 6638)
@@ -26,6 +26,7 @@
 from twistedcaldav.ical import iCalendarProductID
 from twistedcaldav.resource import isCalendarCollectionResource
 from twistedcaldav.static import CalDAVFile, CalendarHomeFile
+from twistedcaldav.directory import augment
 from twistedcaldav.directory.directory import DirectoryService, DirectoryRecord
 
 class UsageError (StandardError):
@@ -247,6 +248,17 @@
 def getDirectory(config):
     global _directory
     if _directory is None:
+	    #
+	    # Setup the Augment Service
+	    #
+	    augmentClass = namedClass(config.AugmentService.type)
+	
+	    try:
+	        augment.AugmentService = augmentClass(**config.AugmentService.params)
+	    except IOError, e:
+	        print "Could not start augment service"
+	        raise
+
         BaseDirectoryService = namedClass(config.DirectoryService["type"])
 
         class MyDirectoryService (BaseDirectoryService):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20101115/50cf0037/attachment.html>


More information about the calendarserver-changes mailing list