#NEWLINE# def set_info_text( self , attribute , text ) : #NEWLINE# #INDENT# c = self . cursor ( ) #NEWLINE# if ( text is None ) : #NEWLINE# #INDENT# q = 'DELETE FROM info WHERE attribute = ?' #NEWLINE# c . execute ( q , ( attribute , ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# q = 'UPDATE info SET text = ? WHERE attribute = ?' #NEWLINE# c . execute ( q , ( text , text ) ) #NEWLINE# if ( c . rowcount == 0 ) : #NEWLINE# #INDENT# q = 'INSERT INTO info (attribute, text) VALUES (?, ?)' #NEWLINE# c . execute ( q , ( attribute , text ) )