#NEWLINE# def update_atom_details( self , atom_detail ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# atomdetails = self . _tables . atomdetails #NEWLINE# with self . _engine . begin ( ) as conn : #NEWLINE# #INDENT# q = sql . select ( [ atomdetails ] ) . where ( ( atomdetails . c . uuid == atom_detail . uuid ) ) #NEWLINE# row = conn . execute ( q ) . first ( ) #NEWLINE# if ( not row ) : #NEWLINE# #INDENT# raise exc . NotFound ( ( "No atom details found with uuid '%s'" % atom_detail . uuid ) ) #NEWLINE# #UNINDENT# e_ad = self . _converter . convert_atom_detail ( row ) #NEWLINE# self . _update_atom_details ( conn , atom_detail , e_ad ) #NEWLINE# #UNINDENT# return e_ad #NEWLINE# #UNINDENT# except sa_exc . SQLAlchemyError : #NEWLINE# #INDENT# exc . raise_with_cause ( exc . StorageFailure , ( "Failed updating atom details with uuid '%s'" % atom_detail . uuid ) )