def one_one_in_books(book_id_val_map, db, field, *args):
 if book_id_val_map:
  sequence = ((sqlite_datetime(v), k) for (k, v) in book_id_val_map.iteritems())
  db.executemany((u'UPDATE books SET %s=? WHERE id=?' % field.metadata[u'column']), sequence)
  field.table.book_col_map.update(book_id_val_map)
 return set(book_id_val_map)

def one_one_in_books ( book_id_val_map , db , field , * args ) : if book_id_val_map : sequence = ( ( sqlite_datetime ( v ) , k ) for ( k , v ) in book_id_val_map . iteritems ( ) ) db . executemany ( ( u'UPDATE books SET %s=? WHERE id=?' % field . metadata [ u'column' ] ) , sequence ) field . table . book_col_map . update ( book_id_val_map ) return set ( book_id_val_map )
set a one-one field in the books table .