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

def yagtd::GTD::do_listall (   self,
  nb 
)
List #nb tasks (close or not and ordered by #id):
GTD> listall [#nb]

Definition at line 715 of file yagtd.py.

                            :
        """List #nb tasks (close or not and ordered by #id):
        GTD> listall [#nb]"""

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

        tasks = self.todo
        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