|
From: <cl...@us...> - 2003-11-10 23:11:24
|
Update of /cvsroot/todo-manager/todo-manager
In directory sc8-pr-cvs1:/tmp/cvs-serv11307
Modified Files:
Tag: branch-0_75
ChangeLog.txt main.py
Log Message:
Several fixes.
Next release in a day or two.
Index: ChangeLog.txt
===================================================================
RCS file: /cvsroot/todo-manager/todo-manager/ChangeLog.txt,v
retrieving revision 1.46
retrieving revision 1.46.2.1
diff -u -d -r1.46 -r1.46.2.1
--- ChangeLog.txt 30 Sep 2003 10:48:11 -0000 1.46
+++ ChangeLog.txt 10 Nov 2003 23:11:20 -0000 1.46.2.1
@@ -1,5 +1,10 @@
ToDo Manager Change Log
+Version 0.75.1:
+ * Fixes a bug that would causes export plugins to crash
+ * Fixes a bug that would cause the task list to get corrupted after an
+ export plugin crashed
+
Version 0.75 (09/30/2003):
* Added an option that saves a backup of the current task list in the
user's (.)todo-manager directory for crash recovery
Index: main.py
===================================================================
RCS file: /cvsroot/todo-manager/todo-manager/main.py,v
retrieving revision 1.84
retrieving revision 1.84.2.1
diff -u -d -r1.84 -r1.84.2.1
--- main.py 25 Sep 2003 20:35:47 -0000 1.84
+++ main.py 10 Nov 2003 23:11:20 -0000 1.84.2.1
@@ -843,7 +843,7 @@
for n in kw["tasks"]:
for t in self.__tasks:
if t["Name"] == n:
- new_tasks.append(t)
+ new_tasks.append(t.copy())
else:
new_tasks = self.__dup_task_list()
@@ -851,6 +851,16 @@
self.__ext_load_file(func=p['function'], desc=p['name'], ext=p['format'], ui=ui)
elif p['type'] == 'file_export':
+ # Convert the time structures into strings
+ for i in range(len(new_tasks)):
+ dd = new_tasks[i]["DueDate"]
+ fd = new_tasks[i]["FinishedDate"]
+
+ if dd != '':
+ new_tasks[i]["DueDate"] = self.fmttime(dd)
+ if fd != '':
+ new_tasks[i]["FinishedDate"] = self.fmttime(fd)
+
self.__ext_save_file(func=p['function'], desc=p['name'], ext=p['format'],
tasks=new_tasks, ui=ui)
@@ -885,8 +895,7 @@
new_list = []
for task in list:
- dup = task.copy()
- new_list.append(dup)
+ new_list.append(task.copy())
return new_list
|