#NEWLINE# def _set_property( self , name , value ) : #NEWLINE# #INDENT# with session_scope ( session . session ) as session : #NEWLINE# #INDENT# prop = session . query ( self . Property ) . filter_by ( name = name ) . first ( ) #NEWLINE# if ( prop is None ) : #NEWLINE# #INDENT# session . add ( self . Property ( name = name , value = str ( value ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# prop . value = str ( value ) #NEWLINE# session . add ( prop )