def task_status_update_many(context, data_dict):
 results = []
 model = context['model']
 deferred = context.get('defer_commit')
 context['defer_commit'] = True
 for data in data_dict['data']:
  results.append(_get_action('task_status_update')(context, data))
 if (not deferred):
  context.pop('defer_commit')
 if (not context.get('defer_commit')):
  model.Session.commit()
 return {'results': results}

def task_status_update_many ( context , data_dict ) : results = [ ] model = context [ 'model' ] deferred = context . get ( 'defer_commit' ) context [ 'defer_commit' ] = True for data in data_dict [ 'data' ] : results . append ( _get_action ( 'task_status_update' ) ( context , data ) ) if ( not deferred ) : context . pop ( 'defer_commit' ) if ( not context . get ( 'defer_commit' ) ) : model . Session . commit ( ) return { 'results' : results }
update many task statuses at once .