#NEWLINE# def update_project_info_cache( self , pid , dci_id = None , name = None , opcode = 'add' , result = constants . RESULT_SUCCESS ) : #NEWLINE# #INDENT# if ( 'add' in opcode ) : #NEWLINE# #INDENT# self . project_info_cache [ pid ] = dict ( name = name , dci_id = dci_id ) #NEWLINE# self . add_project_db ( pid , name , dci_id , result ) #NEWLINE# #UNINDENT# if ( 'update' in opcode ) : #NEWLINE# #INDENT# self . project_info_cache [ pid ] = dict ( name = name , dci_id = pid ) #NEWLINE# self . update_project_entry ( pid , dci_id , result ) #NEWLINE# #UNINDENT# if ( 'delete' in opcode ) : #NEWLINE# #INDENT# if ( pid in self . project_info_cache ) : #NEWLINE# #INDENT# if ( result == constants . DELETE_FAIL ) : #NEWLINE# #INDENT# self . update_project_entry ( pid , dci_id , result ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . project_info_cache . pop ( pid ) #NEWLINE# self . del_project_db ( pid )