def _task_info_update(context, task_id, values, session=None):
 session = (session or get_session())
 task_info_ref = _task_info_get(context, task_id, session=session)
 if task_info_ref:
  task_info_ref.update(values)
  task_info_ref.save(session=session)
 return _task_info_format(task_info_ref)

def _task_info_update ( context , task_id , values , session = None ) : session = ( session or get_session ( ) ) task_info_ref = _task_info_get ( context , task_id , session = session ) if task_info_ref : task_info_ref . update ( values ) task_info_ref . save ( session = session ) return _task_info_format ( task_info_ref )
update an taskinfo object .