Exemple #1
0
 def _add_capacity_info_for_single_developer(self, dev, member, start, end):
     if dev is None:
         dev = ValueObject(dict(name=member.name, load=None))
     dev.full_name = member.full_name
     dev.email = member.email
     
     hours_by_day = member.calendar.get_hours_for_interval(start, end)
     self._calculate_capacity_for_developer(dev, hours_by_day)
     return dev
Exemple #2
0
        def _add_capacity_info_for_single_developer(self, dev, member, start,
                                                    end):
            if dev is None:
                dev = ValueObject(dict(name=member.name, load=None))
            dev.full_name = member.full_name
            dev.email = member.email

            hours_by_day = member.calendar.get_hours_for_interval(start, end)
            self._calculate_capacity_for_developer(dev, hours_by_day)
            return dev