[CalendarServer-changes] [794]
CalendarServer/trunk/twistedcaldav/static.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Dec 11 15:38:58 PST 2006
Revision: 794
http://trac.macosforge.org/projects/calendarserver/changeset/794
Author: wsanchez at apple.com
Date: 2006-12-11 15:38:57 -0800 (Mon, 11 Dec 2006)
Log Message:
-----------
musical chairs
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/static.py
Modified: CalendarServer/trunk/twistedcaldav/static.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/static.py 2006-12-11 21:55:57 UTC (rev 793)
+++ CalendarServer/trunk/twistedcaldav/static.py 2006-12-11 23:38:57 UTC (rev 794)
@@ -22,11 +22,11 @@
__all__ = [
"CalDAVFile",
- "ScheduleInboxFile",
- "ScheduleOutboxFile",
"CalendarHomeFile",
"CalendarHomeProvisioningFile",
"CalendarPrincipalCollectionFile",
+ "ScheduleInboxFile",
+ "ScheduleOutboxFile",
]
import os
@@ -406,29 +406,6 @@
def supportedPrivileges(self, request):
return succeed(schedulePrivilegeSet)
-class ScheduleInboxFile (ScheduleInboxResource, ScheduleFile):
- """
- Calendar scheduling inbox collection resource.
- """
- def provision(self):
- if provisionFile(self, self._parent):
- # FIXME: This should probably be a directory record option that
- # maps to the property value directly without the need to store one.
- if self._parent.record.recordType == "resource":
- # Resources should have autorespond turned on by default,
- # since they typically don't have someone responding for them.
- self.writeDeadProperty(customxml.TwistedScheduleAutoRespond())
-
- def __repr__(self):
- return "<%s (calendar inbox collection): %s>" % (self.__class__.__name__, self.fp.path)
-
-class ScheduleOutboxFile (ScheduleOutboxResource, ScheduleFile):
- """
- Calendar scheduling outbox collection resource.
- """
- def __repr__(self):
- return "<%s (calendar outbox collection): %s>" % (self.__class__.__name__, self.fp.path)
-
class CalendarHomeProvisioningFile (DirectoryCalendarHomeProvisioningResource, DAVFile):
"""
Resource which provisions calendar home collections as needed.
@@ -526,6 +503,29 @@
return super(CalendarHomeFile, self).getChild(name)
+class ScheduleInboxFile (ScheduleInboxResource, ScheduleFile):
+ """
+ Calendar scheduling inbox collection resource.
+ """
+ def provision(self):
+ if provisionFile(self, self._parent):
+ # FIXME: This should probably be a directory record option that
+ # maps to the property value directly without the need to store one.
+ if self._parent.record.recordType == "resource":
+ # Resources should have autorespond turned on by default,
+ # since they typically don't have someone responding for them.
+ self.writeDeadProperty(customxml.TwistedScheduleAutoRespond())
+
+ def __repr__(self):
+ return "<%s (calendar inbox collection): %s>" % (self.__class__.__name__, self.fp.path)
+
+class ScheduleOutboxFile (ScheduleOutboxResource, ScheduleFile):
+ """
+ Calendar scheduling outbox collection resource.
+ """
+ def __repr__(self):
+ return "<%s (calendar outbox collection): %s>" % (self.__class__.__name__, self.fp.path)
+
##
# Utilities
##
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20061211/d17cb944/attachment.html
More information about the calendarserver-changes
mailing list