[CalendarServer-changes] [1340]
CalendarServer/trunk/twistedcaldav/static.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Mar 6 19:08:45 PST 2007
Revision: 1340
http://trac.macosforge.org/projects/calendarserver/changeset/1340
Author: cdaboo at apple.com
Date: 2007-03-06 19:08:45 -0800 (Tue, 06 Mar 2007)
Log Message:
-----------
Make sure Inbox & Outbox have getctag initialized when they are created.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/static.py
Modified: CalendarServer/trunk/twistedcaldav/static.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/static.py 2007-03-06 23:58:59 UTC (rev 1339)
+++ CalendarServer/trunk/twistedcaldav/static.py 2007-03-07 03:08:45 UTC (rev 1340)
@@ -561,6 +561,9 @@
# since they typically don't have someone responding for them.
self.writeDeadProperty(customxml.TwistedScheduleAutoRespond())
+ # Initialize CTag on the calendar collection
+ self.writeDeadProperty(customxml.GETCTag(str(datetime.datetime.now())))
+
return super(ScheduleInboxFile, self).provision()
def __repr__(self):
@@ -574,6 +577,13 @@
ScheduleFile.__init__(self, path, parent)
ScheduleOutboxResource.__init__(self, parent)
+ def provision(self):
+ if self.provisionFile():
+ # Initialize CTag on the calendar collection
+ self.writeDeadProperty(customxml.GETCTag(str(datetime.datetime.now())))
+
+ return super(ScheduleOutboxFile, self).provision()
+
def __repr__(self):
return "<%s (calendar outbox collection): %s>" % (self.__class__.__name__, self.fp.path)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070306/ea121fce/attachment.html
More information about the calendarserver-changes
mailing list