taskyaGTD - Yet Another Getting Things Done. - Tasks: task #6586, today command

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

task #6586: today command

Submitted by:  Hu Songtao <idisblueflash>
Submitted on:  Wed 15 Apr 2009 07:04:52 AM UTC  
 
Should Start On: Wed 15 Apr 2009 12:00:00 AM UTCShould be Finished on: Wed 15 Apr 2009 12:00:00 AM UTC
Category: NonePriority: 3 - Low
Status: In ProgressPrivacy: Public
Percent Complete: 100%Assigned to: MiKaël NAVARRO <klnavarro>
Open/Closed: ClosedEffort: 0.00

Wed 15 Apr 2009 07:04:52 AM UTC, comment #3:

This item has been reassigned from the project yaGTD - Yet Another Getting Things Done. bugs tracker to your tracker.

The original report is still available at bugs #13340

Following are the information included in the original report:

[field #0] Item ID: 13340
[field #1] Group ID: 1970
[field #2] Open/Closed: Open
[field #3] Severity: 1 - Wish
[field #4] Privacy: Public
[field #8] : Unknown bugs Field Display Type
[field #9] Category: None
[field #10] Submitted by: idisblueflash
[field #11] Assigned to: klnavarro
[field #12] Submitted on: Tuesday 04/07/2009 at 10:46
[field #13] Summary: today command
[field #14] Original Submission: yaGTD is the best GTD software that i have never used.

I think I need a new today command to list the todos only in today, and due in today.


[field #16] Item Group: None
[field #17] Status: In Progress
[field #18] Component Version: None
[field #19] Operating System: None
[field #20] Reproducibility: None
[field #21] Size (loc): None
[field #22] Fixed Release: None
[field #23] Planned Release: None
[field #24] Effort: 0.00
[field #28] Priority: 5 - Normal
[field #31] Percent Complete: 0%
[field #33] Release: None
[field #58] Custom Select Box #1: None
[field #59] Custom Select Box #2: None
[field #60] Custom Select Box #3: None
[field #61] Custom Select Box #4: None
[field #62] Custom Select Box #5: None
[field #63] Custom Select Box #6: None
[field #64] Custom Select Box #7: None
[field #65] Custom Select Box #8: None
[field #66] Custom Select Box #9: None
[field #67] Custom Select Box #10: None

MiKaël NAVARRO <klnavarro>
Project AdministratorIn charge of this item.
Sun 12 Apr 2009 07:28:38 AM UTC, comment #2:

[added the today command]

def do_today(self, nb):
"""Sort #nb tasks by priority, and shows only today(the time now before):
GTD> today [#nb]"""
# Parse command line
nb = self._parse_args(nb)[0]

tasks = [ t for t in self.todo.sort() if t['complete'] < 100 ]
if nb: # display only nb tasks
tasks = tasks[:nb]

for t in tasks:
today = datetime.datetime.now()
if t['due']:
if t['due'] <= today:
print self._disp(t)
else:
print self._disp(t)

Hu Songtao <idisblueflash>
Fri 10 Apr 2009 02:06:42 PM UTC, comment #1:

I hacked it with the code below.
When you run: sort, it will sort on today's and before todos.

795 tasks = [ t for t in self.todo.sort() if t['complete'] < 100 ]
796 if nb: # display only nb tasks
797 tasks = tasks[:nb]
798
799 for t in tasks:
800 today = datetime.datetime.now()
801 if t['due']:
802 if t['due'] <= today:
803 print self._disp(t)
804 else:
805 print self._disp(t)

Hu Songtao <idisblueflash>
Wed 15 Apr 2009 07:04:52 AM UTC, original submission:

yaGTD is the best GTD software that i have never used.

I think I need a new today command to list the todos only in today, and due in today.

Hu Songtao <idisblueflash>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by klnavarro (Updated the item)
  • -unavailable- added by idisblueflash (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 06 May 2009 02:57:48 PM UTCklnavarroOpen/ClosedOpen=>Closed
    Wed 06 May 2009 02:55:11 PM UTCklnavarroPercent Complete90%=>100%
    Wed 15 Apr 2009 07:06:23 AM UTCklnavarroShould Start On-=>Wed 15 Apr 2009 12:00:00 AM UTC
      Should be Finished on-=>Wed 15 Apr 2009 12:00:00 AM UTC
      Priority5 - Normal=>3 - Low
      StatusNone=>In Progress
      Percent Complete0%=>90%
      Assigned toNone=>klnavarro
    Wed 15 Apr 2009 07:04:52 AM UTCklnavarroReassign itemyaGTD - Yet Another Getting Things Done., bug #13340=>yaGTD - Yet Another Getting Things Done., task #6586
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup