#NEWLINE# def commit( self ) : #NEWLINE# #INDENT# success = False #NEWLINE# if ( self . weight . error is None ) : #NEWLINE# #INDENT# values = { #NEWLINE# #INDENT# 'from' : self . data . weight , #NEWLINE# 'to' : self . weight . value , #NEWLINE# 'card' : self . card . get_title ( ) , #NEWLINE# #UNINDENT# } #NEWLINE# self . data . weight = self . weight . value #NEWLINE# self . action_log . add_history ( security . get_user ( ) , 'card_weight' , values ) #NEWLINE# success = True #NEWLINE# #UNINDENT# return self