Title: [commits] (jeffrey) [11419] - Aid the performance tests in the completion of their duties by
Revision
11419
Author
jeffrey
Date
2006-08-15 10:53:00 -0700 (Tue, 15 Aug 2006)

Log Message

- Aid the performance tests in the completion of their duties by
being forgiving when content items don't have an appearsIn attribute set.

Modified Paths

Diff

Modified: trunk/chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py (11418 => 11419)

--- trunk/chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py	2006-08-15 01:38:28 UTC (rev 11418)
+++ trunk/chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py	2006-08-15 17:53:00 UTC (rev 11419)
@@ -526,7 +526,7 @@
                     # other collection swatches should be drawn if the item is
                     # in at least one other collection (not counting the
                     # dashboard).
-                    numCollections = len(item.appearsIn)
+                    numCollections = len(getattr(item, 'appearsIn', []))
                     if numCollections > 2 or (numCollections == 2 and
                                               item not in allCollection):
 




_______________________________________________
Commits mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/commits

Reply via email to