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

def gtd::ToDo::order (   self,
  attr 
)
Return all tasks grouped by 'attr' (and sorted by priority).

Definition at line 352 of file gtd.py.

                         :
        """Return all tasks grouped by 'attr' (and sorted by priority)."""

        tasks = {}
        for a in self._attr_list(attr):
            tasks[a] = [ t for t in self.find(attr, a) ]
            tasks[a].sort(self._cmp_prio)  # and sort by prio
        return tasks


Generated by  Doxygen 1.6.0   Back to index