[CalendarServer-changes] [751]
CalendarServer/branches/caldavd-twistd-plugin-2/twistedcaldav/tap.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu Dec 7 15:02:57 PST 2006
Revision: 751
http://trac.macosforge.org/projects/calendarserver/changeset/751
Author: dreid at apple.com
Date: 2006-12-07 15:02:57 -0800 (Thu, 07 Dec 2006)
Log Message:
-----------
use class variables to determine the primary components of the resource heirarchy
Modified Paths:
--------------
CalendarServer/branches/caldavd-twistd-plugin-2/twistedcaldav/tap.py
Modified: CalendarServer/branches/caldavd-twistd-plugin-2/twistedcaldav/tap.py
===================================================================
--- CalendarServer/branches/caldavd-twistd-plugin-2/twistedcaldav/tap.py 2006-12-07 22:57:54 UTC (rev 750)
+++ CalendarServer/branches/caldavd-twistd-plugin-2/twistedcaldav/tap.py 2006-12-07 23:02:57 UTC (rev 751)
@@ -69,6 +69,14 @@
options = CaldavOptions
+ #
+ # default resource classes
+ #
+
+ rootResource = RootResource
+ principalResource = DirectoryPrincipalProvisioningResource
+ calendarResource = CalendarHomeProvisioningFile
+
def makeService(self, options):
#
# Setup the Directory
@@ -82,18 +90,18 @@
# Setup Resource hierarchy
#
- principalCollection = DirectoryPrincipalProvisioningResource(
+ principalCollection = self.principalResource(
os.path.join(config.DocumentRoot, 'principals'),
'/principals/',
directory
)
- calendarCollection = CalendarHomeProvisioningFile(
+ calendarCollection = self.calendarResource(
os.path.join(config.DocumentRoot, 'calendars'),
directory,
'/calendars/')
- root = RootResource(config.DocumentRoot,
+ root = rootResource(config.DocumentRoot,
principalCollections=(principalCollection,)
)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20061207/d125dcab/attachment.html
More information about the calendarserver-changes
mailing list