← Back to team overview

gtg-user team mailing list archive

Re: [Merge] lp:~gtg-user/gtg/improved_tools_dates.py into lp:gtg

 

Un-committing since it has problems with due dates not set (i.e., set to None).  I'm trying to get a stable trunk, so I prefer that new bugs are fixed before merging. We have already enough :)

Traceback:

None
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/luca/Projects/gtg/TRUNK/GTG/core/datastore.py", line 401, in __start_get_tasks
    self.backend.start_get_tasks()
  File "/home/luca/Projects/gtg/TRUNK/GTG/backends/backend_localfile.py", line 129, in start_get_tasks
    task = taskxml.task_from_xml(task, node)
  File "/home/luca/Projects/gtg/TRUNK/GTG/tools/taskxml.py", line 58, in task_from_xml
    cur_task.set_due_date(dates.strtodate(cleanxml.readTextNode(xmlnode,"duedate")))
  File "/home/luca/Projects/gtg/TRUNK/GTG/core/task.py", line 193, in set_due_date
    assert(isinstance(fulldate, Date))
AssertionError

(fulldate is None).

About Paul branch, since you both have worked on this matter you can figure out how to merge the two the best. I'm still not convinced about the elimination of FuzzyDate, since it was useful to get the type of the date for syncing with the backends. There is the is_special() method, but that matches also NoDate.
-- 
https://code.launchpad.net/~gtg-user/gtg/improved_tools_dates.py/+merge/34697
Your team Gtg users is subscribed to branch lp:~gtg-user/gtg/improved_tools_dates.py.



References