[Commits] (morgen) If an icalendar location value is an empty string, don't try to assign event.location

commits at osafoundation.org commits at osafoundation.org
Tue Apr 12 11:33:56 PDT 2005


Commit by: morgen
Modified files:
chandler/parcels/osaf/framework/sharing/ICalendar.py 1.18 1.19

Log message:
If an icalendar location value is an empty string, don't try to assign event.location


ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/framework/sharing/ICalendar.py.diff?r1=text&tr1=1.18&r2=text&tr2=1.19

Index: chandler/parcels/osaf/framework/sharing/ICalendar.py
diff -u chandler/parcels/osaf/framework/sharing/ICalendar.py:1.18 chandler/parcels/osaf/framework/sharing/ICalendar.py:1.19
--- chandler/parcels/osaf/framework/sharing/ICalendar.py:1.18	Fri Apr  8 19:05:51 2005
+++ chandler/parcels/osaf/framework/sharing/ICalendar.py	Tue Apr 12 11:33:55 2005
@@ -309,7 +309,7 @@
                 if description is not None:
                     eventItem.body = textKind.makeValue(description)
                 
-                if location is not None:
+                if location:
                     eventItem.location = Calendar.Location.getLocation(view,
                                                                        location)
                 



More information about the Commits mailing list