[Commits] (stearns) Fix build break by removing references to old-style reminders items. (I'll add new-style attributes shortly)

commits at osafoundation.org commits at osafoundation.org
Tue Dec 7 13:46:52 PST 2004


Commit by: stearns
Modified files:
chandler/parcels/osaf/contentmodel/tests/TestCalendar.py 1.16 1.17

Log message:
Fix build break by removing references to old-style reminders items. (I'll add new-style attributes shortly)

ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/contentmodel/tests/TestCalendar.py.diff?r1=text&tr1=1.16&r2=text&tr2=1.17

Index: chandler/parcels/osaf/contentmodel/tests/TestCalendar.py
diff -u chandler/parcels/osaf/contentmodel/tests/TestCalendar.py:1.16 chandler/parcels/osaf/contentmodel/tests/TestCalendar.py:1.17
--- chandler/parcels/osaf/contentmodel/tests/TestCalendar.py:1.16	Tue Nov  9 15:10:47 2004
+++ chandler/parcels/osaf/contentmodel/tests/TestCalendar.py	Tue Dec  7 13:46:51 2004
@@ -2,8 +2,8 @@
 Unit tests for calendar
 """
 
-__revision__  = "$Revision: 1.16 $"
-__date__      = "$Date: 2004/11/09 23:10:47 $"
+__revision__  = "$Revision: 1.17 $"
+__date__      = "$Date: 2004/12/07 21:46:51 $"
 __copyright__ = "Copyright (c) 2003-2004 Open Source Applications Foundation"
 __license__   = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -36,7 +36,7 @@
             self.assertEqual(event.transparency, "busy")
             self.assertEqual(event.getAttributeValue('transparency'), "busy")
 
-        def _verifyCalendarItems(calendar, location, recurrence, reminder):
+        def _verifyCalendarItems(calendar, location, recurrence):
             self.assertEqual(calendar.displayName, "simple calendar")
             self.assertEqual(calendar.getAttributeValue('displayName'),
                               "simple calendar")
@@ -56,15 +56,12 @@
                          self.rep.find(Path(calendarPath, 'Location')))
         self.assertEqual(Calendar.CalendarParcel.getRecurrencePatternKind(),
                          self.rep.find(Path(calendarPath, 'RecurrencePattern')))
-        self.assertEqual(Calendar.CalendarParcel.getReminderKind(),
-                         self.rep.find(Path(calendarPath, 'Reminder')))
 
         # Construct a sample item
         calendarEventItem = Calendar.CalendarEvent("calendarEventItem")
         calendarItem = Calendar.Calendar("calendarItem")
         locationItem = Calendar.Location("locationItem")
         recurrenceItem = Calendar.RecurrencePattern("recurrenceItem")
-        reminderItem = Calendar.Reminder("reminderItem")
 
         # CalendarEvent properties
         calendarEventItem.displayName = "simple headline"
@@ -77,7 +74,7 @@
         calendarItem.displayName = "simple calendar"
         locationItem.displayName = "simple location"
         _verifyCalendarItems(calendarItem, locationItem,
-                             recurrenceItem, reminderItem)
+                             recurrenceItem)
 
         # Check cloud membership - event + location
 
@@ -100,11 +97,10 @@
         calendarItem = contentItemParent.getItemChild("calendarItem")
         locationItem = contentItemParent.getItemChild("locationItem")
         recurrenceItem = contentItemParent.getItemChild("recurrenceItem")
-        reminderItem = contentItemParent.getItemChild("reminderItem")
         
         _verifyCalendarEvent(calendarEventItem)
         _verifyCalendarItems(calendarItem, locationItem,
-                             recurrenceItem, reminderItem)
+                             recurrenceItem)
 
     def testTimeFields(self):
         """ Test time related fields and methods """



More information about the Commits mailing list