- Revision
- 16025
- Author
- jeffrey
- Date
- 2007-12-03 13:26:06 -0800 (Mon, 03 Dec 2007)
Log Message
[APP] Fix minicalendar initialization
Modified Paths
Diff
Modified: branches/rearchitecture/Chandler-App/ocap/chandler/minicalendar.py (16024 => 16025)
--- branches/rearchitecture/Chandler-App/ocap/chandler/minicalendar.py 2007-12-03 21:21:00 UTC (rev 16024) +++ branches/rearchitecture/Chandler-App/ocap/chandler/minicalendar.py 2007-12-03 21:26:06 UTC (rev 16025) @@ -94,9 +94,14 @@ selectedDate = app_cells['selected_date'], range_mode = app_cells['range_mode'], **kw) - + minicalendar.months_displayed = self.__cells__['months_displayed'] minicalendar.visible_range_start = self.__cells__['firstVisibleDate'] + + if self.selectedDate is None: + self.selectedDate = date.today() + if self.firstVisibleDate is None: + self.firstVisibleDate = self.selectedDate.replace(day=1) # on Linux, because there are no borders around windows, we # want a line separating the minicalendar and preview area,
_______________________________________________ Commits mailing list [email protected] http://lists.osafoundation.org/mailman/listinfo/commits
