예제 #1
0
파일: web_ui.py 프로젝트: nagyist/agilo
 def _get_sprint(self, req, sprint_name):
     """Retrieve the Sprint for the given name"""
     get_sprint = SprintController.GetSprintCommand(self.env,
                                                    sprint=sprint_name)
     sprint = SprintController(self.env).process_command(get_sprint)
     # we need to convert sprint dates into local timezone
     sprint.start = format_datetime(sprint.start, tzinfo=req.tz)
     sprint.end = format_datetime(sprint.end, tzinfo=req.tz)
     if sprint.team is None:
         msg = _("No Team has been assigned to this Sprint...")
         if not msg in req.chrome['warnings']:
             add_warning(req, msg)
     return sprint