[CalendarServer-changes] [6031] CalendarServer/branches/users/glyph/sql-store/calendarserver/tap/ util.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Aug 10 08:53:53 PDT 2010
Revision: 6031
http://trac.macosforge.org/projects/calendarserver/changeset/6031
Author: sagen at apple.com
Date: 2010-08-10 08:53:52 -0700 (Tue, 10 Aug 2010)
Log Message:
-----------
When I say UseDatabase, use it!
Modified Paths:
--------------
CalendarServer/branches/users/glyph/sql-store/calendarserver/tap/util.py
Modified: CalendarServer/branches/users/glyph/sql-store/calendarserver/tap/util.py
===================================================================
--- CalendarServer/branches/users/glyph/sql-store/calendarserver/tap/util.py 2010-08-10 15:48:23 UTC (rev 6030)
+++ CalendarServer/branches/users/glyph/sql-store/calendarserver/tap/util.py 2010-08-10 15:53:52 UTC (rev 6031)
@@ -291,14 +291,14 @@
notifierFactory = None
if config.UseDatabase:
- _newStore = CommonDataStore(FilePath(config.DocumentRoot),
- notifierFactory, config.EnableCalDAV, config.EnableCardDAV)
- else:
_dbRoot = CachingFilePath(config.DatabaseRoot)
_postgresService = PostgresService(_dbRoot, None, v1_schema, "caldav")
_newStore = PostgresStore(_postgresService.produceConnection,
notifierFactory, # config.EnableCalDAV, config.EnableCardDAV)
_dbRoot.child("attachments"))
+ else:
+ _newStore = CommonDataStore(FilePath(config.DocumentRoot),
+ notifierFactory, config.EnableCalDAV, config.EnableCardDAV)
if config.EnableCalDAV:
log.info("Setting up calendar collection: %r" % (calendarResourceClass,))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100810/fd789fbe/attachment.html>
More information about the calendarserver-changes
mailing list