[CalendarServer-changes] [7726] CalendarServer/branches/users/glyph/disable-quota/txdav/common/ datastore

source_changes at macosforge.org source_changes at macosforge.org
Thu Jul 7 02:35:32 PDT 2011


Revision: 7726
          http://trac.macosforge.org/projects/calendarserver/changeset/7726
Author:   glyph at apple.com
Date:     2011-07-07 02:35:32 -0700 (Thu, 07 Jul 2011)
Log Message:
-----------
document the possibility of quota ivar/parameter being None to CommonDataStore implementations

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/disable-quota/txdav/common/datastore/file.py
    CalendarServer/branches/users/glyph/disable-quota/txdav/common/datastore/sql.py

Modified: CalendarServer/branches/users/glyph/disable-quota/txdav/common/datastore/file.py
===================================================================
--- CalendarServer/branches/users/glyph/disable-quota/txdav/common/datastore/file.py	2011-07-07 09:35:21 UTC (rev 7725)
+++ CalendarServer/branches/users/glyph/disable-quota/txdav/common/datastore/file.py	2011-07-07 09:35:32 UTC (rev 7726)
@@ -82,14 +82,14 @@
         stores all calendar and addressbook data for a group of UIDs.
 
     @ivar quota: the amount of space granted to each calendar home (in bytes)
-        for storing attachments.
+        for storing attachments, or C{None} if quota should not be enforced.
 
-    @type quota: C{int}
+    @type quota: C{int} or C{NoneType}
     """
     implements(ICalendarStore)
 
     def __init__(self, path, notifierFactory, enableCalendars=True,
-        enableAddressBooks=True, quota=(2 ** 20)):
+                 enableAddressBooks=True, quota=(2 ** 20)):
         """
         Create a store.
 

Modified: CalendarServer/branches/users/glyph/disable-quota/txdav/common/datastore/sql.py
===================================================================
--- CalendarServer/branches/users/glyph/disable-quota/txdav/common/datastore/sql.py	2011-07-07 09:35:21 UTC (rev 7725)
+++ CalendarServer/branches/users/glyph/disable-quota/txdav/common/datastore/sql.py	2011-07-07 09:35:32 UTC (rev 7726)
@@ -116,9 +116,9 @@
         there is more than one store.  (Useful mostly for unit tests.)
 
     @ivar quota: the amount of space granted to each calendar home (in bytes)
-        for storing attachments.
+        for storing attachments, or C{None} if quota should not be enforced.
 
-    @type quota: C{int}
+    @type quota: C{int} or C{NoneType}
     """
 
     implements(ICalendarStore)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110707/81c9d123/attachment.html>


More information about the calendarserver-changes mailing list