[CalendarServer-changes] [5741] CalendarServer/branches/new-store/txcaldav/calendarstore/file.py
source_changes at macosforge.org
source_changes at macosforge.org
Tue Jun 15 11:54:27 PDT 2010
Revision: 5741
http://trac.macosforge.org/projects/calendarserver/changeset/5741
Author: glyph at apple.com
Date: 2010-06-15 11:54:24 -0700 (Tue, 15 Jun 2010)
Log Message:
-----------
inbox index is slightly different than calendar index
Modified Paths:
--------------
CalendarServer/branches/new-store/txcaldav/calendarstore/file.py
Modified: CalendarServer/branches/new-store/txcaldav/calendarstore/file.py
===================================================================
--- CalendarServer/branches/new-store/txcaldav/calendarstore/file.py 2010-06-15 18:54:03 UTC (rev 5740)
+++ CalendarServer/branches/new-store/txcaldav/calendarstore/file.py 2010-06-15 18:54:24 UTC (rev 5741)
@@ -59,7 +59,7 @@
from twistedcaldav.caldavxml import ScheduleCalendarTransp, Transparent
from twistedcaldav.customxml import GETCTag
-from twistedcaldav.index import Index as OldIndex
+from twistedcaldav.index import Index as OldIndex, IndexSchedule as OldInboxIndex
def _isValidName(name):
"""
@@ -792,7 +792,12 @@
def __init__(self, calendar):
self.calendar = calendar
- self._oldIndex = OldIndex(Index.StubResource(calendar))
+ stubResource = Index.StubResource(calendar)
+ if self.calendar.name() == 'inbox':
+ indexClass = OldInboxIndex
+ else:
+ indexClass = OldIndex
+ self._oldIndex = indexClass(stubResource)
def calendarObjects(self):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100615/4d331d3e/attachment.html>
More information about the calendarserver-changes
mailing list