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

def gtd::ToDo::search (   self,
  regexp 
)
Return all tasks matching 'regexp'.

Definition at line 324 of file gtd.py.

                            :
        """Return all tasks matching 'regexp'."""

        expr = re.compile(regexp, re.IGNORECASE)
        tasks = [ t for t in self if expr.search(t['title']) ]  # only into 'title'
        tasks.sort(self._cmp_prio)  # and sort by prio
        return tasks


Generated by  Doxygen 1.6.0   Back to index