def reencrypt_row_content(db,<EOL>table,<EOL>row_id,<EOL>decrypt_func,<EOL>encrypt_func,<EOL>logger):
q = (select([table.c.content])<EOL>.with_for_update()<EOL>.where(table.c.id == row_id))<EOL>[(content,)] = db.execute(q)<EOL>logger.info("<STR_LIT>", table.name, row_id)<EOL>db.execute(<EOL>table<EOL>.update()<EOL>.where(table.c.id == row_id)<EOL>.values(content=encrypt_func(decrypt_func(content)))<EOL>)<EOL>logger.info("<STR_LIT>", table.name, row_id)<EOL>
Re-encrypt a row from ``table`` with ``id`` of ``row_id``.