Goocalendar

Bug 25

classification
Title: Display day view with no selected
Type: crash Severity: major
Components: Versions:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: ced Nosy List: ced, roundup-bot
Priority: high Keywords:

Created on 2020-01-02 11:54 by ced, last changed 2020-01-29 23:23 by ced.

Messages
msg82 (view) Author: [hidden] (ced) Date: 2020-01-02 11:54
draw_events can be called when _selected_day is still None.

ERROR:tryton.common.common:  File "/home/ced/Projects/goocalendar/goocalendar/_calendar.py", line 228, in on_size_allocate
    self.update()
  File "/home/ced/Projects/goocalendar/goocalendar/_calendar.py", line 240, in update
    self.draw_events()
  File "/home/ced/Projects/goocalendar/goocalendar/_calendar.py", line 610, in draw_events
    max_y += self._selected_day.line_height

AttributeError: 'NoneType' object has no attribute 'line_height'
msg83 (view) Author: [hidden] (roundup-bot) Date: 2020-01-02 11:56
New changeset 10e4bd5baf59 by Cédric Krier in branch 'default':
Test selected day is set before using it
https://hg.tryton.org/public/goocalendar/rev/10e4bd5baf59
msg87 (view) Author: [hidden] (roundup-bot) Date: 2020-01-22 15:39
New changeset 1ca78ffe6068 by Cédric Krier in branch 'default':
Test selected day is set before using it
https://hg.tryton.org/goocalendar/rev/1ca78ffe6068
msg88 (view) Author: [hidden] (roundup-bot) Date: 2020-01-22 15:40
New changeset 1ca78ffe6068 by Cédric Krier in branch 'default':
Test selected day is set before using it
https://hg.tryton.org/public/goocalendar/rev/1ca78ffe6068
History
Date User Action Args
2020-01-29 23:23:08cedsetstatus: pending -> closed
2020-01-22 15:40:21roundup-botsetstatus: closed -> pending
messages: + msg88
2020-01-22 15:39:16roundup-botsetstatus: pending -> closed
messages: + msg87
2020-01-02 11:56:25roundup-botsetstatus: new -> pending
nosy: + roundup-bot
messages: + msg83
2020-01-02 11:54:21cedcreate