[Commits] (twl) Generate random importance status for CalendarEvents

commits at osafoundation.org commits at osafoundation.org
Thu Aug 26 13:40:08 PDT 2004


Commit by: twl
Modified files:
chandler/parcels/osaf/contentmodel/tests/GenerateItems.py 1.14 1.15

Log message:
Generate random importance status for CalendarEvents


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

Index: chandler/parcels/osaf/contentmodel/tests/GenerateItems.py
diff -u chandler/parcels/osaf/contentmodel/tests/GenerateItems.py:1.14 chandler/parcels/osaf/contentmodel/tests/GenerateItems.py:1.15
--- chandler/parcels/osaf/contentmodel/tests/GenerateItems.py:1.14	Mon Jul 12 12:09:30 2004
+++ chandler/parcels/osaf/contentmodel/tests/GenerateItems.py	Thu Aug 26 13:40:07 2004
@@ -2,8 +2,8 @@
 Generate sample items: calendar, contacts, etc.
 """
 
-__revision__  = "$Revision: 1.14 $"
-__date__      = "$Date: 2004/07/12 19:09:30 $"
+__revision__  = "$Revision: 1.15 $"
+__date__      = "$Date: 2004/08/26 20:40:07 $"
 __copyright__ = "Copyright (c) 2003 Open Source Applications Foundation"
 __license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -27,6 +27,8 @@
     email.emailAddress = "%s@%s" % (handle, domainName)
     return email
 
+IMPORTANCE = ["important", "normal", "fyi"]
+
 def GenerateCalendarEvent(days):
     event = Calendar.CalendarEvent()
     event.displayName = random.choice(HEADLINES)
@@ -41,6 +43,7 @@
     
     # Choose random minutes
     event.duration = DateTime.DateTimeDelta(0, 0, random.choice(DURATIONS))
+    event.importance = random.choice(IMPORTANCE)
     return event
     
 def generateCalendarEventItems(count, days):



More information about the Commits mailing list