Logo Search packages:      
Sourcecode: yagtd version File versions

def yagtd::GTD::do_listpri (   self,
  regexp 
)

Sort tasks matching given regexp (appear only after start date):
GTD> listpri [regexp]

Definition at line 829 of file yagtd.py.

00829                                 :
        """Sort tasks matching given regexp (appear only after start date):
        GTD> listpri [regexp]"""

        todos = [ t for t in self.todo.sort() if t['complete'] < 100 ] 

        # Appear only after start date
        today = datetime.datetime.now()
        todos = [ t for t in todos if t['start'] <= today ]

        # Then, retrieve the pattern (into full desc tasks)
        expr = re.compile(regexp, re.IGNORECASE)
        tasks = [ t for t in todos if expr.search(self._dump_line(t)) ]

        for t in tasks:
            print self._disp(t)

    
    def do_order(self, nb_attr):


Generated by  Doxygen 1.6.0   Back to index