[CalendarServer-changes] [1527]
CalendarServer/trunk/twistedcaldav/config.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue May 15 09:15:23 PDT 2007
Revision: 1527
http://trac.macosforge.org/projects/calendarserver/changeset/1527
Author: cdaboo at 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:
--------------
CalendarServer/trunk/twistedcaldav/config.py
Modified: CalendarServer/trunk/twistedcaldav/config.py
===================================================================
--- 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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070515/9d89f575/attachment.html
More information about the calendarserver-changes
mailing list