Example #1
0
 def parse_sprint(self, name, data):
     sprint = Sprint()
     sprint.name = unicode(name)
     sprint.raw = data
     sprint.jira_data = data['jira']
     sprint.zebra_data = data['zebra']
     sprint.commited_man_days = unicode(data['commited_man_days'])
     if 'force' in data['zebra']:
         sprint.forced = self.parse_forced(data['zebra']['force'])
     if 'planned' in data['zebra']:
         sprint.planned = self.parse_planned(data['zebra']['planned'],
                                             data['zebra']['start_date'],
                                             data['zebra']['end_date'])
     return sprint
Example #2
0
 def parse_sprint(self, name, data):
     sprint = Sprint()
     sprint.name = unicode(name)
     sprint.raw = data
     sprint.jira_data = data['jira']
     sprint.zebra_data = data['zebra']
     sprint.commited_man_days = unicode(data['commited_man_days'])
     if 'force' in data['zebra']:
         sprint.forced = self.parse_forced(data['zebra']['force'])
     if 'planned' in data['zebra']:
         sprint.planned = self.parse_planned(
             data['zebra']['planned'],
             data['zebra']['start_date'], data['zebra']['end_date']
         )
     return sprint
Example #3
0
 def get_sprint(self):
     s = Sprint()
     s.name = 'my sprint'
     return s
Example #4
0
 def get_sprint(self):
     s = Sprint()
     s.name = 'my sprint'
     return s