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

def yagtd::GTD::do_sort (   self,
  nb 
)
Sort #nb tasks by priority:
GTD> sort [#nb]

Definition at line 788 of file yagtd.py.

                         :
        """Sort #nb tasks by priority:
        GTD> sort [#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:
            print self._disp(t)


Generated by  Doxygen 1.6.0   Back to index