(self, lang=None, task=None, ordered=True)
Return generator for all matching tasks by language.
        Args:
            lang    : OPTIONAL, what language, None for all
            task    : OPTIONAL, provide a wildcard for task names
            ordered : OPTIONAL, Get them in index order

        TODO: retain relative ordering based on the file they came from?
Return generator for all matching tasks by language.
        Args:
            lang    : OPTIONAL, what language, None for all
            task    : OPTIONAL, provide a wildcard for task names
            ordered : OPTIONAL, Get them in index order
Return generator for all matching tasks by language . Args : lang : OPTIONAL what language None for all task : OPTIONAL provide a wildcard for task names ordered : OPTIONAL Get them in index order
def getTasks(self, lang=None, task=None, ordered=True):
        """
        Return generator for all matching tasks by language.
        Args:
            lang    : OPTIONAL, what language, None for all
            task    : OPTIONAL, provide a wildcard for task names
            ordered : OPTIONAL, Get them in index order

        TODO: retain relative ordering based on the file they came from?
        """
        baseName = task.split('*')[0] if task else None
        for l, tasks in self.tasks.iteritems():
            if lang is None or lang == l:
                for name, t in sorted(tasks.iteritems(), key=lambda x: x[1].index):
                    if(baseName is None or name.startswith(baseName)):
                        yield t
def getTasks ( self , lang = None , task = None , ordered = True ) : baseName = task . split ( '*' ) [ 0 ] if task else None for l , tasks in self . tasks . iteritems ( ) : if lang is None or lang == l : for name , t in sorted ( tasks . iteritems ( ) , key = lambda x : x [ 1 ] . index ) : if ( baseName is None or name . startswith ( baseName ) ) : yield t