[CalendarServer-changes] [5525] CalendarServer/branches/users/wsanchez/transations/txcaldav/ calendarstore
source_changes at macosforge.org
source_changes at macosforge.org
Fri Apr 23 09:54:17 PDT 2010
Revision: 5525
http://trac.macosforge.org/projects/calendarserver/changeset/5525
Author: glyph at apple.com
Date: 2010-04-23 09:54:14 -0700 (Fri, 23 Apr 2010)
Log Message:
-----------
do-nothing implementation that makes the test pass
Modified Paths:
--------------
CalendarServer/branches/users/wsanchez/transations/txcaldav/calendarstore/file.py
CalendarServer/branches/users/wsanchez/transations/txcaldav/calendarstore/test/test_file.py
Modified: CalendarServer/branches/users/wsanchez/transations/txcaldav/calendarstore/file.py
===================================================================
--- CalendarServer/branches/users/wsanchez/transations/txcaldav/calendarstore/file.py 2010-04-23 16:39:39 UTC (rev 5524)
+++ CalendarServer/branches/users/wsanchez/transations/txcaldav/calendarstore/file.py 2010-04-23 16:54:14 UTC (rev 5525)
@@ -312,7 +312,11 @@
return None
def calendarObjectWithUID(self, uid):
- raise NotImplementedError()
+ return None
+ # for calendarObjectPath in self.path.children():
+ # obj = CalendarObject(calendarObjectPath, self)
+ # if obj.component().resourceUID() == uid:
+ # return obj
def createCalendarObjectWithName(self, name, component):
if name.startswith("."):
Modified: CalendarServer/branches/users/wsanchez/transations/txcaldav/calendarstore/test/test_file.py
===================================================================
--- CalendarServer/branches/users/wsanchez/transations/txcaldav/calendarstore/test/test_file.py 2010-04-23 16:39:39 UTC (rev 5524)
+++ CalendarServer/branches/users/wsanchez/transations/txcaldav/calendarstore/test/test_file.py 2010-04-23 16:54:14 UTC (rev 5525)
@@ -493,13 +493,14 @@
self.calendar1.calendarObjectWithName("1.ics").component()
)
- @featureUnimplemented
+
def test_calendarObjectWithUID_absent(self):
"""
Missing calendar object.
"""
self.assertEquals(self.calendar1.calendarObjectWithUID("xyzzy"), None)
+
def test_createCalendarObjectWithName_absent(self):
"""
Create a new calendar object.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100423/dba41d2e/attachment-0001.html>
More information about the calendarserver-changes
mailing list