Goocalendar

Bug 26

classification
Title: Sorting event fails
Type: crash Severity: major
Components: Versions:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: ced Nosy List: ced, pokoli, roundup-bot
Priority: normal Keywords:

Created on 2020-01-22 15:20 by ced, last changed 2020-01-29 23:24 by ced.

Messages
msg84 (view) Author: [hidden] (ced) Date: 2020-01-22 15:20
When sorting events list contains events with and without end date, a type error is raised:

  File "tryton/gui/window/form.py", line 404, in sig_next
    self.screen.display_next()
  File "tryton/gui/window/view_form/screen/screen.py", line 977, in display_next
    events.sort()
  File "goocalendar/_event.py", line 44, in __lt__
    return (self.start, self.end) < (other_event.start, other_event.start)

TypeError: '<' not supported between instances of 'NoneType' and 'datetime.datetime'
msg85 (view) Author: [hidden] (roundup-bot) Date: 2020-01-22 15:31
New changeset 9dfcb629ef35 by Cédric Krier in branch 'default':
Compare events on start and end date.
https://hg.tryton.org/public/goocalendar/rev/9dfcb629ef35
msg89 (view) Author: [hidden] (roundup-bot) Date: 2020-01-22 15:40
New changeset 5b968d8e347d by Cédric Krier in branch 'default':
Compare events on start and end date.
https://hg.tryton.org/public/goocalendar/rev/5b968d8e347d
msg97 (view) Author: [hidden] (pokoli) Date: 2020-01-29 00:34
LGTM
msg99 (view) Author: [hidden] (roundup-bot) Date: 2020-01-29 23:15
New changeset 6a69a8acc47b by Cédric Krier in branch 'default':
Compare events on start and end date.
https://hg.tryton.org/goocalendar/rev/6a69a8acc47b
msg100 (view) Author: [hidden] (roundup-bot) Date: 2020-01-29 23:21
New changeset 6a69a8acc47b by Cédric Krier in branch 'default':
Compare events on start and end date.
https://hg.tryton.org/public/goocalendar/rev/6a69a8acc47b
History
Date User Action Args
2020-01-29 23:24:56cedsetstatus: pending -> closed
2020-01-29 23:21:52roundup-botsetstatus: closed -> pending
messages: + msg100
2020-01-29 23:15:33roundup-botsetstatus: pending -> closed
messages: + msg99
2020-01-29 00:34:13pokolisetnosy: + pokoli
messages: + msg97
2020-01-22 15:40:23roundup-botsetmessages: + msg89
2020-01-22 15:31:54roundup-botsetstatus: new -> pending
nosy: + roundup-bot
messages: + msg85
2020-01-22 15:20:35cedcreate