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

def gtd::ToDo::find (   self,
Return all tasks into 'attr' matching 'value'.

Definition at line 332 of file gtd.py.

        """Return all tasks into 'attr' matching 'value'."""

        if attr in ['context', 'project', 'status', 'reference']:
            # Return a list of tasks
            return [ t for t in self if value in t[attr] ]
            # Only one task must match!
            for t in self:
                if t[attr] == value:
                    return t

Generated by  Doxygen 1.6.0   Back to index