Exemple #1
0
 def keyForEffort(self, effort, task=None):
     task = task or effort.task()
     effortStart = effort.getStart()
     return (task, self.startOfPeriod(effortStart), 
         self.endOfPeriod(effortStart))
Exemple #2
0
 def createSortKeyFunction(self):
     # Sort by start of effort first, then by task subject
     return lambda effort: (effort.getStart(), 
                            effort.task().subject(recursive=True))
Exemple #3
0
 def __key_for_effort(self, effort, task=None):  # pylint: disable=W0621
     task = task or effort.task()
     effort_start = effort.getStart()
     return (task, self.__start_of_period(effort_start),
             self.__end_of_period(effort_start))
Exemple #4
0
 def __key_for_effort(self, effort, task=None):  # pylint: disable=W0621
     task = task or effort.task()
     effort_start = effort.getStart()
     return (task, self.__start_of_period(effort_start), 
                   self.__end_of_period(effort_start))