Logo Search packages:      
Sourcecode: yagtd version File versions  Download package

def yagtd::GTD::do_list (   self,
  nb 
)
List #nb open tasks (ordered by #id):
GTD> list [#nb]

Definition at line 735 of file yagtd.py.

                         :
        """List #nb open tasks (ordered by #id):
        GTD> list [#nb]"""

        # Parse command line
        nb = self._parse_args(nb)[0]

        tasks = [ t for t in self.todo if t['complete'] < 100 ]  # filter done/close tasks
        if nb:  # display only nb tasks
            tasks = tasks[:nb]

        for t in tasks:
            print self._disp(t)

        # Show number of tasks as result of search if more than 10
        if len(tasks) > 10:
            print "%d tasks found" % len(tasks)


Generated by  Doxygen 1.6.0   Back to index