[Commits] (donn) Moved CalendarEvent methods to the Mixin
commits at osafoundation.org
commits at osafoundation.org
Mon Sep 27 13:09:53 PDT 2004
Commit by: donn
Modified files:
chandler/parcels/osaf/contentmodel/calendar/Calendar.py 1.21 1.22
Log message:
Moved CalendarEvent methods to the Mixin
- should fix 1957
ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/contentmodel/calendar/Calendar.py.diff?r1=text&tr1=1.21&r2=text&tr2=1.22
Index: chandler/parcels/osaf/contentmodel/calendar/Calendar.py
diff -u chandler/parcels/osaf/contentmodel/calendar/Calendar.py:1.21 chandler/parcels/osaf/contentmodel/calendar/Calendar.py:1.22
--- chandler/parcels/osaf/contentmodel/calendar/Calendar.py:1.21 Mon Aug 30 19:31:28 2004
+++ chandler/parcels/osaf/contentmodel/calendar/Calendar.py Mon Sep 27 13:09:52 2004
@@ -1,8 +1,8 @@
""" Classes used for Calendar parcel kinds
"""
-__revision__ = "$Revision: 1.21 $"
-__date__ = "$Date: 2004/08/31 02:31:28 $"
+__revision__ = "$Revision: 1.22 $"
+__date__ = "$Date: 2004/09/27 20:09:52 $"
__copyright__ = "Copyright (c) 2003-2004 Open Source Applications Foundation"
__license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
@@ -117,15 +117,6 @@
# give a starting display name
self.displayName = "New Event"
-
-class CalendarEvent(CalendarEventMixin, Notes.Note):
-
- def __init__(self, name=None, parent=None, kind=None):
- if not kind:
- kind = Globals.repository.findPath("//parcels/osaf/contentmodel/calendar/CalendarEvent")
- super (CalendarEvent, self).__init__(name, parent, kind)
- self.participants = []
-
def GetDuration(self):
"""Returns an mxDateTimeDelta, None if no startTime or endTime"""
@@ -157,6 +148,15 @@
self.endTime = self.startTime + duration
+
+class CalendarEvent(CalendarEventMixin, Notes.Note):
+
+ def __init__(self, name=None, parent=None, kind=None):
+ if not kind:
+ kind = Globals.repository.findPath("//parcels/osaf/contentmodel/calendar/CalendarEvent")
+ super (CalendarEvent, self).__init__(name, parent, kind)
+ self.participants = []
+
class Location(Item.Item):
def __init__(self, name=None, parent=None, kind=None):
if not parent:
More information about the Commits
mailing list