[CalendarServer-changes] [5000] CalendarServer/trunk/txcaldav/calendarstore
source_changes at macosforge.org
source_changes at macosforge.org
Mon Feb 1 13:40:59 PST 2010
Revision: 5000
http://trac.macosforge.org/projects/calendarserver/changeset/5000
Author: wsanchez at apple.com
Date: 2010-02-01 13:40:58 -0800 (Mon, 01 Feb 2010)
Log Message:
-----------
Implement organizer()
Modified Paths:
--------------
CalendarServer/trunk/txcaldav/calendarstore/file.py
CalendarServer/trunk/txcaldav/calendarstore/test/test_file.py
Modified: CalendarServer/trunk/txcaldav/calendarstore/file.py
===================================================================
--- CalendarServer/trunk/txcaldav/calendarstore/file.py 2010-02-01 21:15:44 UTC (rev 4999)
+++ CalendarServer/trunk/txcaldav/calendarstore/file.py 2010-02-01 21:40:58 UTC (rev 5000)
@@ -239,8 +239,7 @@
return self._componentType
def organizer(self):
- # FIXME: Ideally should return a URI object
- raise NotImplementedError()
+ return self.component().getOrganizer()
def properties(self):
raise NotImplementedError()
Modified: CalendarServer/trunk/txcaldav/calendarstore/test/test_file.py
===================================================================
--- CalendarServer/trunk/txcaldav/calendarstore/test/test_file.py 2010-02-01 21:15:44 UTC (rev 4999)
+++ CalendarServer/trunk/txcaldav/calendarstore/test/test_file.py 2010-02-01 21:40:58 UTC (rev 5000)
@@ -254,7 +254,6 @@
def text_iCalendarText(self):
text = self.object1.iCalendarText()
- self.failUnless(isinstance(text, str), text)
self.failUnless(text.startswith("BEGIN:VCALENDAR\r\n"))
self.failUnless("\r\nUID:uid-1\r\n" in text)
self.failUnless(text.endswith("\r\nEND:VCALENDAR\r\n"))
@@ -266,8 +265,7 @@
self.assertEquals(self.object1.componentType(), "VEVENT")
def test_organizer(self):
- raise NotImplementedError()
- test_organizer.todo = "Unimplemented"
+ self.assertEquals(self.object1.organizer(), "mailto:wsanchez at apple.com")
def test_properties(self):
raise NotImplementedError()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100201/98b1d4dd/attachment.html>
More information about the calendarserver-changes
mailing list