GTG

Merge lp:~bertrand-rousseau/gtg/get_due_date into lp:~gtg/gtg/old-trunk

Proposed by Bertrand Rousseau
Status: Merged
Merged at revision: 1211
Proposed branch: lp:~bertrand-rousseau/gtg/get_due_date
Merge into: lp:~gtg/gtg/old-trunk
Diff against target: 309 lines (+69/-54)
4 files modified
CHANGELOG (+1/-0)
GTG/core/task.py (+44/-18)
GTG/gtk/browser/taskbrowser.glade (+24/-24)
GTG/gtk/editor/editor.py (+0/-12)
To merge this branch: bzr merge lp:~bertrand-rousseau/gtg/get_due_date
Reviewer Review Type Date Requested Status
Izidor Matušov code, running Approve
Review via email: mp+109534@code.launchpad.net

Description of the change

    Remove the implicit interpretation of due date through get_due_date:

    With this patch, GTG uses the actual value of the task object's due date
    when accessing it through get_due_date.

    It seems to me that it's saner than the current mechanism that relies
    on an on-the-fly interpretation when accessing the due date. Indeed,
    this can hide mismatches between the stored value and the returned due
    date.

    Typical example: a parent task with due date A and a child task
    with no due date: the child has no due date set, but get_due_date
    will return 'A'.

    Now, you get what you really have stored, but therefore it's up to the
    code to make sure you store a correct value!

    Therefore, from now on all code dealing with tasks due dates and
    tasks relations MUST be written so that the due dates are always set
    correctly (=they respect the date constraints). This is actually not
    a big deal since most of this is actually cared for by set_due_date().

    set_due_date() has thus been slightly modified (pursuing previous
    work by Nimit Shah), so that when you set/update the due date, all
    related tasks dates are modified to respect the constraints.

    However, D&D'ing tasks can still create situations where a parent task due
    date and its child due date are not compatible. This cannot be fixed
    now since D&D is done in liblarch and there are no hooks available
    from the GTG code to handle tasks updates when reparenting them...

    This patch also means that from now on, undefined due date are presented
    explicitely in the list as not being set, even when constrained by a
    parent. Therefore, it's up to the user to explicitely define it if needed
    (which she/he can do by directly setting the due date of the task, or by
    setting the due date of the parent). It's possibly more work for her/him,
    but at least the outcome is clear and therefore predictable/usable: explicit
    is always better than implicit.

    Note: some code from the task editor that checks if the start and due
    date are compatible has been removed, since it's done in set_due_date
    now.

To post a comment you must log in.
1198. By Bertrand Rousseau

After giving it (even) more thoughts, I think it's better to set the due
date to the most urgent parents due date when clearing it (instead of
setting it to undefine as I did in the previous version of this patch).

Indeed, it reinforces the rule imposing that "task due date < parents
due dates" at all times. Since this the GTG policy, it's probably better
to insist on it (it requires to discover or learn the policy, but it
reduces the confusion once it is learned - a better doc would certainly
help here btw).

Moreover, in order to provide a better feedback on the fact that there
is a "default value" for a task due date depending on related task due
dates, I changed a "set due date" context menu label from "clear due
date" to "reset to default", since it could let one think that this
would actually unset the due date instead of setting it to its current
most constrained value (according to the due date policy).

All that being said, I think this actually corresponds to the previous
behavior, so this should not be a big deal...

Revision history for this message
Izidor Matušov (izidor) wrote :

I reviewed your changes and I like the proposed behavior better. There goes nitpicking:

get_constrained_date() should be a private method (start with '_') or even better a private function (a defined function within function) because it isn't use anywehre but set_due_date() and it is not intended to be a public method

The correct code in editor should be:

if date_kind == GTGCalendar.DATE_KIND_DUE:
    date = self.task.get_due_date()

Otherwise it uses start date for the calendar - regression.

You've changed the description from "clear due date" into "reset to default". I am not sure if it is a good idea:
  1, it is inconsistent within due_date -> the button in calendar is still "clear"
  2, it is inconsistent with start_date -> why you clear start_date but reset due_date? In my opinion, it reveals too much implementation details to a user.

And as usually, the name of the program is intranslatible after using Glade :-/

It looks good, fix those small details and you have my aproval.

review: Needs Fixing (code, running)
1199. By Bertrand Rousseau

Apply modification to fix remarks from Izidor's review

1200. By Bertrand Rousseau

Merge trunk, and fix the self-description in about dialog which was shortened for som reason.

1201. By Bertrand Rousseau

Some pylint fixes

1202. By Bertrand Rousseau

Update CHANGELOG

Revision history for this message
Bertrand Rousseau (bertrand-rousseau) wrote :

Hi Izidor,

I updated the code to take your remarks into account. I also changed some other small things:

 - Used capital letter in the menu items (it's a convention, sort of)
 - Fixed the GTG self-description in the about dialog (it was shortened for some reasons)
 - Fixed lint errors on the modified methods

Revision history for this message
Izidor Matušov (izidor) wrote :

It looks great, merging.

review: Approve (code, running)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'CHANGELOG'
--- CHANGELOG 2012-07-18 12:09:41 +0000
+++ CHANGELOG 2012-07-20 09:48:37 +0000
@@ -31,6 +31,7 @@
31 * It is not possible to add another instance of local file synchronization service31 * It is not possible to add another instance of local file synchronization service
32 * Fixes for bugs #906516, #1002160 (task urgency color plugin), by Wolter Hellmund32 * Fixes for bugs #906516, #1002160 (task urgency color plugin), by Wolter Hellmund
33 * Fix for bug #1001012: Notification area icon should change color when there are urgent tasks, by Antonio Roquentin33 * Fix for bug #1001012: Notification area icon should change color when there are urgent tasks, by Antonio Roquentin
34 * Saner implementation of set_due_date
3435
352012-02-13 Getting Things GNOME! 0.2.9362012-02-13 Getting Things GNOME! 0.2.9
36 * Big refractorization of code, now using liblarch37 * Big refractorization of code, now using liblarch
3738
=== modified file 'GTG/core/task.py'
--- GTG/core/task.py 2012-07-13 17:27:54 +0000
+++ GTG/core/task.py 2012-07-20 09:48:37 +0000
@@ -247,33 +247,59 @@
247 self.last_modified = modified247 self.last_modified = modified
248248
249 def set_due_date(self, fulldate):249 def set_due_date(self, fulldate):
250 self.due_date=Date(fulldate)250 """Defines the task's due date."""
251 if self.get_start_date() > Date(fulldate) and self.get_start_date() != Date.no_date():251 def get_due_date_constraint():
252 """ Returns the most urgent due date constraint, following
253 parents' due dates. Return Date.no_date() if no constraint
254 is applied. """
255 cur_date = Date.no_date()
256 for par_id in self.get_parents():
257 par = self.req.get_task(par_id)
258 if par.get_due_date() != Date.no_date() and \
259 par.get_due_date() < cur_date:
260 cur_date = par.get_due_date()
261 return cur_date
262 fulldate_obj = Date(fulldate) # caching the conversion
263 self.due_date = fulldate_obj
264 # if the task's start date happens later than the
265 # new due date, we update it
266 if self.get_start_date() != Date.no_date() and \
267 self.get_start_date() > fulldate_obj:
252 self.set_start_date(fulldate)268 self.set_start_date(fulldate)
253 if Date(fulldate)!= Date.no_date():269 if fulldate_obj != Date.no_date():
270 # if the parent's due date happens before the task's new
271 # due date, we update it
254 for par_id in self.parents:272 for par_id in self.parents:
255 par = self.req.get_task(par_id)273 par = self.req.get_task(par_id)
256 if par.due_date != Date.no_date() and par.due_date < Date(fulldate):274 if par.get_due_date() != Date.no_date() and \
275 par.get_due_date() < fulldate_obj:
257 par.set_due_date(fulldate)276 par.set_due_date(fulldate)
277 # the current task being one of its children's parents, we must
278 # apply the constraints on their due/start dates as well
258 for sub_id in self.children:279 for sub_id in self.children:
259 sub=self.req.get_task(sub_id)280 sub = self.req.get_task(sub_id)
260 if sub.due_date > Date(fulldate) and sub.due_date != Date.no_date():281 # child's due date is not set, we use the task's new
261 sub.set_due_date(fulldate)282 # due date
262 if sub.get_start_date() != Date.no_date() and sub.get_start_date() > Date(fulldate):283 if sub.get_due_date() == Date.no_date():
284 sub.set_due_date(fulldate)
285 # child's due date happens later than the task's: we
286 # update it to the task's new due date
287 # (= the new most restrictive)
288 if sub.get_due_date() != Date.no_date() and \
289 sub.get_due_date() > fulldate_obj:
290 sub.set_due_date(fulldate)
291 # if the child's start date happens later than
292 # the task's new due date, we update it
293 if sub.get_start_date() != Date.no_date() and \
294 sub.get_start_date() > fulldate_obj:
263 sub.set_start_date(fulldate)295 sub.set_start_date(fulldate)
296 else:
297 self.due_date = get_due_date_constraint()
264 self.sync()298 self.sync()
265299
266 def get_due_date(self):300 def get_due_date(self):
267 """ Due date return the most urgent date of all parents """301 """ Returns the due date, which always respects all constraints """
268 zedate = self.due_date302 return self.due_date
269
270 for par in self.get_parents():
271 # compare with the parent's due date
272 pardate = self.req.get_task(par).get_due_date()
273 if pardate and zedate > pardate:
274 zedate = pardate
275
276 return zedate
277303
278 def set_start_date(self, fulldate):304 def set_start_date(self, fulldate):
279 self.start_date = Date(fulldate)305 self.start_date = Date(fulldate)
280306
=== modified file 'GTG/gtk/browser/taskbrowser.glade'
--- GTG/gtk/browser/taskbrowser.glade 2012-07-13 17:24:28 +0000
+++ GTG/gtk/browser/taskbrowser.glade 2012-07-20 09:48:37 +0000
@@ -4,7 +4,7 @@
4 <!-- interface-naming-policy toplevel-contextual -->4 <!-- interface-naming-policy toplevel-contextual -->
5 <object class="GtkWindow" id="MainWindow">5 <object class="GtkWindow" id="MainWindow">
6 <property name="can_focus">False</property>6 <property name="can_focus">False</property>
7 <property name="title" translatable="yes">Getting Things Gnome!</property>7 <property name="title" translatable="yes">Getting Things GNOME!</property>
8 <property name="default_width">700</property>8 <property name="default_width">700</property>
9 <property name="default_height">550</property>9 <property name="default_height">550</property>
10 <signal name="configure-event" handler="on_move" swapped="no"/>10 <signal name="configure-event" handler="on_move" swapped="no"/>
@@ -796,13 +796,13 @@
796 <property name="type_hint">dialog</property>796 <property name="type_hint">dialog</property>
797 <property name="program_name" translatable="yes">Getting Things GNOME!</property>797 <property name="program_name" translatable="yes">Getting Things GNOME!</property>
798 <property name="copyright" translatable="yes">Copyright © 2008-2012 Lionel Dricot, Bertrand Rousseau</property>798 <property name="copyright" translatable="yes">Copyright © 2008-2012 Lionel Dricot, Bertrand Rousseau</property>
799 <property name="comments" translatable="yes">GTG is a personal tasks and TODO-list items organizer for the GNOME.</property>799 <property name="comments" translatable="yes">GTG is a personal tasks and TODO-list items organizer for the GNOME desktop environment.</property>
800 <property name="website_label" translatable="yes">GTG website</property>800 <property name="website_label" translatable="yes">GTG website</property>
801 <property name="license" translatable="yes">Getting Things Gnome! is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.801 <property name="license" translatable="yes">Getting Things GNOME! is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
802802
803Getting Things Gnome! is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.803Getting Things GNOME! is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
804804
805You should have received a copy of the GNU General Public License along with Getting Things Gnome!; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</property>805You should have received a copy of the GNU General Public License along with Getting Things GNOME!; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</property>
806 <property name="authors">Lionel Dricot (ploum@ploum.net),806 <property name="authors">Lionel Dricot (ploum@ploum.net),
807Bertrand Rousseau (bertrand.rousseau@gmail.com)</property>807Bertrand Rousseau (bertrand.rousseau@gmail.com)</property>
808 <property name="logo_icon_name">gtg</property>808 <property name="logo_icon_name">gtg</property>
@@ -1044,7 +1044,7 @@
1044 </child>1044 </child>
1045 <child>1045 <child>
1046 <object class="GtkImageMenuItem" id="tcm_start_menu">1046 <object class="GtkImageMenuItem" id="tcm_start_menu">
1047 <property name="label" translatable="yes">_Set start date</property>1047 <property name="label" translatable="yes">_Set Start Date</property>
1048 <property name="visible">True</property>1048 <property name="visible">True</property>
1049 <property name="can_focus">False</property>1049 <property name="can_focus">False</property>
1050 <property name="use_action_appearance">False</property>1050 <property name="use_action_appearance">False</property>
@@ -1056,7 +1056,7 @@
1056 <property name="can_focus">False</property>1056 <property name="can_focus">False</property>
1057 <child>1057 <child>
1058 <object class="GtkImageMenuItem" id="tcm_mark_as_started">1058 <object class="GtkImageMenuItem" id="tcm_mark_as_started">
1059 <property name="label" translatable="yes">t_oday</property>1059 <property name="label" translatable="yes">T_oday</property>
1060 <property name="visible">True</property>1060 <property name="visible">True</property>
1061 <property name="can_focus">False</property>1061 <property name="can_focus">False</property>
1062 <property name="use_action_appearance">False</property>1062 <property name="use_action_appearance">False</property>
@@ -1067,7 +1067,7 @@
1067 </child>1067 </child>
1068 <child>1068 <child>
1069 <object class="GtkImageMenuItem" id="tcm_start_for_tomorrow">1069 <object class="GtkImageMenuItem" id="tcm_start_for_tomorrow">
1070 <property name="label" translatable="yes">_tomorrow</property>1070 <property name="label" translatable="yes">_Tomorrow</property>
1071 <property name="visible">True</property>1071 <property name="visible">True</property>
1072 <property name="can_focus">False</property>1072 <property name="can_focus">False</property>
1073 <property name="use_action_appearance">False</property>1073 <property name="use_action_appearance">False</property>
@@ -1078,7 +1078,7 @@
1078 </child>1078 </child>
1079 <child>1079 <child>
1080 <object class="GtkImageMenuItem" id="tcm_start_for_next_week">1080 <object class="GtkImageMenuItem" id="tcm_start_for_next_week">
1081 <property name="label" translatable="yes">next _week</property>1081 <property name="label" translatable="yes">Next _Week</property>
1082 <property name="visible">True</property>1082 <property name="visible">True</property>
1083 <property name="can_focus">False</property>1083 <property name="can_focus">False</property>
1084 <property name="use_action_appearance">False</property>1084 <property name="use_action_appearance">False</property>
@@ -1089,7 +1089,7 @@
1089 </child>1089 </child>
1090 <child>1090 <child>
1091 <object class="GtkImageMenuItem" id="tcm_start_for_next_month">1091 <object class="GtkImageMenuItem" id="tcm_start_for_next_month">
1092 <property name="label" translatable="yes">next _month</property>1092 <property name="label" translatable="yes">Next _Month</property>
1093 <property name="visible">True</property>1093 <property name="visible">True</property>
1094 <property name="can_focus">False</property>1094 <property name="can_focus">False</property>
1095 <property name="use_action_appearance">False</property>1095 <property name="use_action_appearance">False</property>
@@ -1100,7 +1100,7 @@
1100 </child>1100 </child>
1101 <child>1101 <child>
1102 <object class="GtkImageMenuItem" id="tcm_start_for_next_year">1102 <object class="GtkImageMenuItem" id="tcm_start_for_next_year">
1103 <property name="label" translatable="yes">next _year</property>1103 <property name="label" translatable="yes">Next _Year</property>
1104 <property name="visible">True</property>1104 <property name="visible">True</property>
1105 <property name="can_focus">False</property>1105 <property name="can_focus">False</property>
1106 <property name="use_action_appearance">False</property>1106 <property name="use_action_appearance">False</property>
@@ -1117,7 +1117,7 @@
1117 </child>1117 </child>
1118 <child>1118 <child>
1119 <object class="GtkImageMenuItem" id="tcm_start_clear">1119 <object class="GtkImageMenuItem" id="tcm_start_clear">
1120 <property name="label" translatable="yes">_clear start date</property>1120 <property name="label" translatable="yes">_Clear Start Date</property>
1121 <property name="visible">True</property>1121 <property name="visible">True</property>
1122 <property name="can_focus">False</property>1122 <property name="can_focus">False</property>
1123 <property name="use_action_appearance">False</property>1123 <property name="use_action_appearance">False</property>
@@ -1132,7 +1132,7 @@
1132 </child>1132 </child>
1133 <child>1133 <child>
1134 <object class="GtkImageMenuItem" id="tcm_due_menu">1134 <object class="GtkImageMenuItem" id="tcm_due_menu">
1135 <property name="label" translatable="yes">Set due date</property>1135 <property name="label" translatable="yes">Set Due Date</property>
1136 <property name="visible">True</property>1136 <property name="visible">True</property>
1137 <property name="can_focus">False</property>1137 <property name="can_focus">False</property>
1138 <property name="use_action_appearance">False</property>1138 <property name="use_action_appearance">False</property>
@@ -1144,7 +1144,7 @@
1144 <property name="can_focus">False</property>1144 <property name="can_focus">False</property>
1145 <child>1145 <child>
1146 <object class="GtkImageMenuItem" id="tcm_due_today">1146 <object class="GtkImageMenuItem" id="tcm_due_today">
1147 <property name="label" translatable="yes">t_oday</property>1147 <property name="label" translatable="yes">T_oday</property>
1148 <property name="visible">True</property>1148 <property name="visible">True</property>
1149 <property name="can_focus">False</property>1149 <property name="can_focus">False</property>
1150 <property name="use_action_appearance">False</property>1150 <property name="use_action_appearance">False</property>
@@ -1155,7 +1155,7 @@
1155 </child>1155 </child>
1156 <child>1156 <child>
1157 <object class="GtkImageMenuItem" id="tcm_due_tomorrow">1157 <object class="GtkImageMenuItem" id="tcm_due_tomorrow">
1158 <property name="label" translatable="yes">_tomorrow</property>1158 <property name="label" translatable="yes">_Tomorrow</property>
1159 <property name="visible">True</property>1159 <property name="visible">True</property>
1160 <property name="can_focus">False</property>1160 <property name="can_focus">False</property>
1161 <property name="use_action_appearance">False</property>1161 <property name="use_action_appearance">False</property>
@@ -1166,7 +1166,7 @@
1166 </child>1166 </child>
1167 <child>1167 <child>
1168 <object class="GtkImageMenuItem" id="tcm_due_next_week">1168 <object class="GtkImageMenuItem" id="tcm_due_next_week">
1169 <property name="label" translatable="yes">next _week</property>1169 <property name="label" translatable="yes">Next _Week</property>
1170 <property name="visible">True</property>1170 <property name="visible">True</property>
1171 <property name="can_focus">False</property>1171 <property name="can_focus">False</property>
1172 <property name="use_action_appearance">False</property>1172 <property name="use_action_appearance">False</property>
@@ -1177,7 +1177,7 @@
1177 </child>1177 </child>
1178 <child>1178 <child>
1179 <object class="GtkImageMenuItem" id="tcm_due_next_month">1179 <object class="GtkImageMenuItem" id="tcm_due_next_month">
1180 <property name="label" translatable="yes">next _month</property>1180 <property name="label" translatable="yes">Next _Month</property>
1181 <property name="visible">True</property>1181 <property name="visible">True</property>
1182 <property name="can_focus">False</property>1182 <property name="can_focus">False</property>
1183 <property name="use_action_appearance">False</property>1183 <property name="use_action_appearance">False</property>
@@ -1188,7 +1188,7 @@
1188 </child>1188 </child>
1189 <child>1189 <child>
1190 <object class="GtkImageMenuItem" id="tcm_due_next_year">1190 <object class="GtkImageMenuItem" id="tcm_due_next_year">
1191 <property name="label" translatable="yes">next _year</property>1191 <property name="label" translatable="yes">Next _Year</property>
1192 <property name="visible">True</property>1192 <property name="visible">True</property>
1193 <property name="can_focus">False</property>1193 <property name="can_focus">False</property>
1194 <property name="use_action_appearance">False</property>1194 <property name="use_action_appearance">False</property>
@@ -1205,7 +1205,7 @@
1205 </child>1205 </child>
1206 <child>1206 <child>
1207 <object class="GtkImageMenuItem" id="tcm_due_now">1207 <object class="GtkImageMenuItem" id="tcm_due_now">
1208 <property name="label" translatable="yes">_now</property>1208 <property name="label" translatable="yes">_Now</property>
1209 <property name="visible">True</property>1209 <property name="visible">True</property>
1210 <property name="can_focus">False</property>1210 <property name="can_focus">False</property>
1211 <property name="use_action_appearance">False</property>1211 <property name="use_action_appearance">False</property>
@@ -1216,7 +1216,7 @@
1216 </child>1216 </child>
1217 <child>1217 <child>
1218 <object class="GtkImageMenuItem" id="tcm_due_soon">1218 <object class="GtkImageMenuItem" id="tcm_due_soon">
1219 <property name="label" translatable="yes">_soon</property>1219 <property name="label" translatable="yes">_Soon</property>
1220 <property name="visible">True</property>1220 <property name="visible">True</property>
1221 <property name="can_focus">False</property>1221 <property name="can_focus">False</property>
1222 <property name="use_action_appearance">False</property>1222 <property name="use_action_appearance">False</property>
@@ -1227,7 +1227,7 @@
1227 </child>1227 </child>
1228 <child>1228 <child>
1229 <object class="GtkImageMenuItem" id="tcm_due_someday">1229 <object class="GtkImageMenuItem" id="tcm_due_someday">
1230 <property name="label" translatable="yes">_someday</property>1230 <property name="label" translatable="yes">_Someday</property>
1231 <property name="visible">True</property>1231 <property name="visible">True</property>
1232 <property name="can_focus">False</property>1232 <property name="can_focus">False</property>
1233 <property name="use_action_appearance">False</property>1233 <property name="use_action_appearance">False</property>
@@ -1244,7 +1244,7 @@
1244 </child>1244 </child>
1245 <child>1245 <child>
1246 <object class="GtkImageMenuItem" id="tcm_due_clear">1246 <object class="GtkImageMenuItem" id="tcm_due_clear">
1247 <property name="label" translatable="yes">_clear due date</property>1247 <property name="label" translatable="yes">_Clear Due Date</property>
1248 <property name="visible">True</property>1248 <property name="visible">True</property>
1249 <property name="can_focus">False</property>1249 <property name="can_focus">False</property>
1250 <property name="use_action_appearance">False</property>1250 <property name="use_action_appearance">False</property>
12511251
=== modified file 'GTG/gtk/editor/editor.py'
--- GTG/gtk/editor/editor.py 2012-07-13 17:24:28 +0000
+++ GTG/gtk/editor/editor.py 2012-07-20 09:48:37 +0000
@@ -366,13 +366,6 @@
366 self.task.set_due_date(datetoset)366 self.task.set_due_date(datetoset)
367 elif data == "closed":367 elif data == "closed":
368 self.task.set_closed_date(datetoset)368 self.task.set_closed_date(datetoset)
369
370 # Set the due date to be equal to the start date
371 # when it happens that the start date is later than the due date
372 start_date = self.task.get_start_date()
373 due_date = self.task.get_due_date()
374 if start_date and (start_date > due_date):
375 self.task.set_due_date(self.task.get_start_date())
376 else:369 else:
377 #We should write in red in the entry if the date is not valid370 #We should write in red in the entry if the date is not valid
378 widget.modify_text(gtk.STATE_NORMAL, gtk.gdk.color_parse("#F00"))371 widget.modify_text(gtk.STATE_NORMAL, gtk.gdk.color_parse("#F00"))
@@ -382,11 +375,6 @@
382 """Called when a date-changing button is clicked."""375 """Called when a date-changing button is clicked."""
383 if date_kind == GTGCalendar.DATE_KIND_DUE:376 if date_kind == GTGCalendar.DATE_KIND_DUE:
384 date = self.task.get_due_date()377 date = self.task.get_due_date()
385 start_date = self.task.get_start_date()
386 due_before_start = start_date and start_date > date
387
388 if not date or due_before_start:
389 date = self.task.get_start_date()
390 elif date_kind == GTGCalendar.DATE_KIND_START:378 elif date_kind == GTGCalendar.DATE_KIND_START:
391 date = self.task.get_start_date()379 date = self.task.get_start_date()
392 elif date_kind == GTGCalendar.DATE_KIND_CLOSED:380 elif date_kind == GTGCalendar.DATE_KIND_CLOSED:

Subscribers

People subscribed via source and target branches

to status/vote changes: