[CalendarServer-changes] [7632] CalendarServer/branches/users/glyph/quota/twistedcaldav/test/util.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Jun 20 12:38:31 PDT 2011


Revision: 7632
          http://trac.macosforge.org/projects/calendarserver/changeset/7632
Author:   glyph at apple.com
Date:     2011-06-20 12:38:31 -0700 (Mon, 20 Jun 2011)
Log Message:
-----------
Include derived quota.

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/quota/twistedcaldav/test/util.py

Modified: CalendarServer/branches/users/glyph/quota/twistedcaldav/test/util.py
===================================================================
--- CalendarServer/branches/users/glyph/quota/twistedcaldav/test/util.py	2011-06-20 19:38:04 UTC (rev 7631)
+++ CalendarServer/branches/users/glyph/quota/twistedcaldav/test/util.py	2011-06-20 19:38:31 UTC (rev 7632)
@@ -43,6 +43,7 @@
     DirectoryPrincipalProvisioningResource)
 from twistedcaldav.directory.xmlfile import XMLDirectoryService
 
+from txdav.common.datastore.test.util import deriveQuota
 from txdav.common.datastore.file import CommonDataStore
 
 
@@ -103,13 +104,15 @@
         addressbooks.)  By default returns a L{CommonDataStore}, but this is a
         hook for subclasses to override to provide different data stores.
         """
-        return CommonDataStore(FilePath(config.DocumentRoot), None, True, False)
+        return CommonDataStore(FilePath(config.DocumentRoot), None, True, False,
+                               quota=deriveQuota(self))
 
 
     def setupCalendars(self):
         """
-        Set up the resource at /calendars (a L{DirectoryCalendarHomeProvisioningResource}),
-        and assign it as C{self.calendarCollection}.
+        Set up the resource at /calendars (a
+        L{DirectoryCalendarHomeProvisioningResource}), and assign it as
+        C{self.calendarCollection}.
         """
 
         # Need a data store
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110620/8ed1664b/attachment.html>


More information about the calendarserver-changes mailing list