Revision
1527
Author
cdaboo@apple.com
Date
2007-05-15 09:15:23 -0700 (Tue, 15 May 2007)

Log Message

Make sure quotas are enabled by default.

Modified Paths

Diff

Modified: CalendarServer/trunk/twistedcaldav/config.py (1526 => 1527)


--- CalendarServer/trunk/twistedcaldav/config.py	2007-05-15 16:06:46 UTC (rev 1526)
+++ CalendarServer/trunk/twistedcaldav/config.py	2007-05-15 16:15:23 UTC (rev 1527)
@@ -227,6 +227,12 @@
         CalendarPrincipalResource.enableDropBox(self.EnableDropBox)
         CalendarPrincipalResource.enableNotifications(self.EnableNotifications)
 
+        # Handle global quota value
+        from twistedcaldav.directory.calendar import DirectoryCalendarHomeResource
+        from twistedcaldav.resource import CalDAVResource
+        DirectoryCalendarHomeResource.quotaLimit = self.UserQuota
+        CalDAVResource.sizeLimit = self.MaximumAttachmentSize
+
     def updateDefaults(self, items):
         _mergeData(self._defaults, items)
         self.update(items)