GTG

crash when trying to change the date of a parent task

Bug #833626 reported by Lionel Dricot
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTG
Fix Released
High
Izidor Matušov

Bug Description

Traceback (most recent call last):
  File "/home/ploum/hacking/trunk_gtg/GTG/gtk/editor/editor.py", line 395, in on_date_pressed
    self.calendar.set_date(date, date_kind)
  File "/home/ploum/hacking/trunk_gtg/GTG/gtk/editor/calendar.py", line 79, in set_date
    cal_date = self.__from_datetime_to_calendar(date.to_py_date())
  File "/home/ploum/hacking/trunk_gtg/GTG/gtk/editor/calendar.py", line 179, in __from_datetime_to_calendar
    return datetime.date(date.year, date.month - 1, date.day)
ValueError: day is out of range for month

Changed in gtg:
milestone: none → 0.2.9
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Izidor Matušov (izidor) wrote :

I am not able to reproduce this bug. Can you give me steps how to reproduce this? Thank you

Changed in gtg:
status: Confirmed → Incomplete
Izidor Matušov (izidor)
Changed in gtg:
milestone: 0.2.9 → 0.3
Revision history for this message
Izidor Matušov (izidor) wrote :

I've found the way, how to reproduce this bug:

1, have a task with startdate Oct 31, duedate Nov 6
2, open the task and move duedate to Nov 4 and then open calendar for stardate

The traceback is because there is no such a day as 2011-09-31. I am not sure, why there is -1, but I have to investigate that...

Changed in gtg:
status: Incomplete → Confirmed
status: Confirmed → Triaged
Revision history for this message
Izidor Matušov (izidor) wrote :

Simplified case to reproduce:

1, Set startdate to 2011-10-31 and open the calendar

The interesting thing is that, when you have startdate to such a magical value and duedate is not set, due date calendar also raises the traceback... There maybe some relation between duedate and startdate?

Changed in gtg:
assignee: nobody → Izidor Matušov (izidor)
Revision history for this message
Izidor Matušov (izidor) wrote :

Solved in rev. 1018

Changed in gtg:
status: Triaged → Fix Committed
Izidor Matušov (izidor)
Changed in gtg:
milestone: 0.3 → 0.2.9
Izidor Matušov (izidor)
Changed in gtg:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.