gtg team mailing list archive
-
gtg team
-
Mailing list archive
-
Message #03524
[Merge] lp:~nimit-svnit/gtg/dates into lp:gtg
Nimit Shah has proposed merging lp:~nimit-svnit/gtg/dates into lp:gtg.
Requested reviews:
Gtg developers (gtg)
For more details, see:
https://code.launchpad.net/~nimit-svnit/gtg/dates/+merge/106024
Fix for Bug #826916. Updated the set_due_date method. The discussion had been done on the mailing list about a month ago (sorry for the late work!).
--
https://code.launchpad.net/~nimit-svnit/gtg/dates/+merge/106024
Your team Gtg developers is requested to review the proposed merge of lp:~nimit-svnit/gtg/dates into lp:gtg.
=== modified file 'CHANGELOG'
--- CHANGELOG 2012-05-09 22:35:40 +0000
+++ CHANGELOG 2012-05-16 17:05:23 +0000
@@ -21,6 +21,7 @@
* Reorganised notification area menu (New task, Show browser, <tasks>, Quit)
* Added an option to import local (development) version of liblarch instead of system installed one
* Fix for bug #995740: (no title task) through quickadd bar, by Nimit Shah
+ * Fix for Bug #826916, by Nimit Shah
2012-02-13 Getting Things GNOME! 0.2.9
* Big refractorization of code, now using liblarch
=== modified file 'GTG/core/task.py'
--- GTG/core/task.py 2012-04-22 11:56:25 +0000
+++ GTG/core/task.py 2012-05-16 17:05:23 +0000
@@ -242,7 +242,15 @@
self.last_modified = modified
def set_due_date(self, fulldate):
- self.due_date = Date(fulldate)
+ if self.start_date > Date(fulldate):
+ self.set_start_date(fulldate)
+ for sub_id in self.children:
+ sub = self.req.get_task(sub_id)
+ if sub.due_date > Date(fulldate) or sub.due_date == Date.no_date():
+ if sub.start_date > Date(fulldate):
+ sub.set_start_date(fulldate)
+ sub.set_due_date(fulldate)
+ self.due_date=Date(fulldate)
self.sync()
def get_due_date(self):