[0.2.3->0.2.4 regression] date parsing crash in __cmp__(): AttributeError: 'str' object has no attribute 'to_py_date'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GTG |
Fix Released
|
High
|
Luca Invernizzi | ||
gtg (Ubuntu) |
Fix Released
|
High
|
Luca Invernizzi |
Bug Description
French version of gtg.
Regression in 0.2.4 from 0.2.3.
Try creating the following tasks:
test due:now
test due:maintenant
In the first case, nothing happens when you press enter (it used to work fine). Same thing for due:soon. due:demain works though.
In the second case, you get a traceback:
Traceback (most recent call last):
File "/usr/share/
due_date = self.get_
File "/usr/share/
if date == str(no_date):
File "/usr/share/
return cmp(self.
AttributeError: 'str' object has no attribute 'to_py_date'
Changed in gtg: | |
milestone: | 0.3 → 0.2.9 |
Changed in gtg: | |
status: | Fix Committed → Fix Released |
From dupe bug:
"""
Happened when tried to add "Test4 due:05-06-2010" in quick add.
Traceback (most recent call last): gtg/GTG/ taskbrowser/ browser. py", line 1352, in on_quickadd_ activate canonical_ date(args) gtg/GTG/ taskbrowser/ browser. py", line 825, in get_canonical_date gtg/GTG/ tools/dates. py", line 31, in __cmp__ to_py_date( ), other.to_py_date())
File "/usr/share/
due_date = self.get_
File "/usr/share/
if date == str(no_date):
File "/usr/share/
return cmp(self.
AttributeError: 'str' object has no attribute 'to_py_date'
"""