[Commits] (alecf) clean up slightly so that colors from outOfTheBoxCollections don't bleed into other collections

commits at osafoundation.org commits at osafoundation.org
Wed Apr 20 16:29:20 PDT 2005


Commit by: alecf
Modified files:
chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py 1.75 1.76

Log message:
clean up slightly so that colors from outOfTheBoxCollections don't bleed into other collections

ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py.diff?r1=text&tr1=1.75&r2=text&tr2=1.76

Index: chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py
diff -u chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py:1.75 chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py:1.76
--- chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py:1.75	Wed Apr 20 13:15:58 2005
+++ chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py	Wed Apr 20 16:29:18 2005
@@ -1,8 +1,8 @@
 """ Canvas for calendaring blocks
 """
 
-__version__ = "$Revision: 1.75 $"
-__date__ = "$Date: 2005/04/20 20:15:58 $"
+__version__ = "$Revision: 1.76 $"
+__date__ = "$Date: 2005/04/20 23:29:18 $"
 __copyright__ = "Copyright (c) 2004 Open Source Applications Foundation"
 __license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -632,8 +632,7 @@
         calDataKind = CalendarData.getKind(view=self.itsView)
         for coll in containingCollections:
 
-            # really, this should be checking "everying except the All collection"
-            if (coll is not self.contents.source) and \
+            if not hasattr(coll, 'outOfTheBoxCollection') and \
                 coll.isItemOf(calDataKind):
                 return coll.calendarColor
         return None



More information about the Commits mailing list