def row_to_object(row): checkpoint_pass_object = CheckpointPass() checkpoint_pass_object.id = row.id checkpoint_pass_object.user_id = row.user_id checkpoint_pass_object.time = row.time checkpoint_pass_object.checkpoint = Checkpoint.row_to_object(row.checkpoint) return checkpoint_pass_object