← Back to team overview

gtg team mailing list archive

[Bug 561449] [NEW] date parsing broke

 

Public bug reported:

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/gtg/GTG/taskbrowser/browser.py", line 1352, in on_quickadd_activate
    due_date = self.get_canonical_date(args)
  File "/usr/share/gtg/GTG/taskbrowser/browser.py", line 825, in get_canonical_date
    if date == str(no_date):
  File "/usr/share/gtg/GTG/tools/dates.py", line 31, in __cmp__
    return cmp(self.to_py_date(), other.to_py_date())
AttributeError: 'str' object has no attribute 'to_py_date'

** Affects: gtg
     Importance: Undecided
         Status: New

-- 
date parsing broke
https://bugs.launchpad.net/bugs/561449
You received this bug notification because you are a member of Gtg
contributors, which is subscribed to Getting Things GNOME!.

Status in Getting Things GNOME!: New

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/gtg/GTG/taskbrowser/browser.py", line 1352, in on_quickadd_activate
    due_date = self.get_canonical_date(args)
  File "/usr/share/gtg/GTG/taskbrowser/browser.py", line 825, in get_canonical_date
    if date == str(no_date):
  File "/usr/share/gtg/GTG/tools/dates.py", line 31, in __cmp__
    return cmp(self.to_py_date(), other.to_py_date())
AttributeError: 'str' object has no attribute 'to_py_date'





Follow ups

References