def change(self, time_delta, how_much, type=None, scope=None, marker_key=None, marker_value=True):
     instance = BurndownDataChange(self.env).update_values(
         type= type or BurndownDataConstants.REMAINING_TIME,
         scope=getattr(scope, 'name', self.sprint.name),
         when= now() + time_delta,
         delta=how_much,
     )
     if marker_key is not None:
         instance.update_marker(marker_key, marker_value)
     return instance
 def create_change(self, delta=23, marker_key=None, marker_value=None, **kwargs):
     change = BurndownDataChange(self.env)
     change.type = BurndownDataConstants.REMAINING_TIME
     change.scope = self.sprint.name
     change.when = now()
     change.set_delta(delta)
     for key, value in kwargs.items():
         setattr(change, key, value)
     if marker_key is not None:
         change.update_marker(marker_key, marker_value)
     return change
 def create_change(self,
                   delta=23,
                   marker_key=None,
                   marker_value=None,
                   **kwargs):
     change = BurndownDataChange(self.env)
     change.type = BurndownDataConstants.REMAINING_TIME
     change.scope = self.sprint.name
     change.when = now()
     change.set_delta(delta)
     for key, value in kwargs.items():
         setattr(change, key, value)
     if marker_key is not None:
         change.update_marker(marker_key, marker_value)
     return change
Beispiel #4
0
 def change(self,
            time_delta,
            how_much,
            type=None,
            scope=None,
            marker_key=None,
            marker_value=True):
     instance = BurndownDataChange(self.env).update_values(
         type=type or BurndownDataConstants.REMAINING_TIME,
         scope=getattr(scope, 'name', self.sprint.name),
         when=now() + time_delta,
         delta=how_much,
     )
     if marker_key is not None:
         instance.update_marker(marker_key, marker_value)
     return instance