[CalendarServer-changes] [6512] CalendarServer/branches/users/glyph/sharedpool/calendarserver/tools/ test/test_purge.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Nov 1 14:18:19 PDT 2010
Revision: 6512
http://trac.macosforge.org/projects/calendarserver/changeset/6512
Author: glyph at apple.com
Date: 2010-11-01 14:18:16 -0700 (Mon, 01 Nov 2010)
Log Message:
-----------
hint re: getRootResource for future maintainers
Modified Paths:
--------------
CalendarServer/branches/users/glyph/sharedpool/calendarserver/tools/test/test_purge.py
Modified: CalendarServer/branches/users/glyph/sharedpool/calendarserver/tools/test/test_purge.py
===================================================================
--- CalendarServer/branches/users/glyph/sharedpool/calendarserver/tools/test/test_purge.py 2010-11-01 21:17:57 UTC (rev 6511)
+++ CalendarServer/branches/users/glyph/sharedpool/calendarserver/tools/test/test_purge.py 2010-11-01 21:18:16 UTC (rev 6512)
@@ -47,7 +47,11 @@
def setUp(self):
super(PurgeOldEventsTestCase, self).setUp()
- config.DirectoryService.params['xmlFile'] = os.path.join(os.path.dirname(__file__), "purge", "accounts.xml")
+ config.DirectoryService.params['xmlFile'] = os.path.join(
+ os.path.dirname(__file__), "purge", "accounts.xml"
+ )
+ # TODO: when rewriting for new-store, getRootResource needs a parent
+ # service argument now, to know when to start/stop the connection pool.
self.rootResource = getRootResource(config)
self.directory = self.rootResource.getDirectory()
@@ -381,6 +385,8 @@
copyAugmentFile = FilePath(config.DataRoot).child("augments.xml")
origAugmentFile.copyTo(copyAugmentFile)
+ # TODO: when rewriting for new-store, getRootResource needs a parent
+ # service argument now, to know when to start/stop the connection pool.
self.rootResource = getRootResource(config)
self.directory = self.rootResource.getDirectory()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20101101/33e665b8/attachment.html>
More information about the calendarserver-changes
mailing list