@pick_context_manager_writer
def compute_node_create(context, values):
 convert_objects_related_datetimes(values)
 compute_node_ref = models.ComputeNode()
 compute_node_ref.update(values)
 compute_node_ref.save(context.session)
 return compute_node_ref

@ pick_context_manager_writer def compute_node_create ( context , values ) : convert_objects_related_datetimes ( values ) compute_node_ref = models . ComputeNode ( ) compute_node_ref . update ( values ) compute_node_ref . save ( context . session ) return compute_node_ref
create a computenode from the values dictionary .