#NEWLINE# def get_config_dict_full( self , config_path ) : #NEWLINE# #INDENT# '\n    Get the whole configuration dict: reading the base common-config and\n    using the child_config_dict to update the base_config_dict\n\n    @param   config_path      The path for configuration file\n    @return  dict             The whole configuration dict\n    ' #NEWLINE# base_config_dict = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# child_config_dict = ConfigObj ( config_path , file_error = True ) #NEWLINE# arguments_config_dict = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if child_config_dict [ 'configuration' ] . has_key ( 'base' ) : #NEWLINE# #INDENT# config_path = child_config_dict [ 'configuration' ] [ 'base' ] #NEWLINE# if ( config_path . find ( '%' ) != ( - 1 ) ) : #NEWLINE# #INDENT# config_path = self . parse_item ( None , None , None , item = config_path ) #NEWLINE# #UNINDENT# base_config_dict = self . get_config_dict_full ( config_path ) #NEWLINE# child_configuration_dict = child_config_dict [ 'configuration' ] #NEWLINE# base_configuration_dict = child_config_dict [ 'configuration' ] #NEWLINE# for ( file_name , file_dict ) in base_configuration_dict . iteritems ( ) : #NEWLINE# #INDENT# if ( file_name in child_configuration_dict ) : #NEWLINE# #INDENT# file_dict . update ( child_configuration_dict [ file_name ] ) #NEWLINE# #UNINDENT# #UNINDENT# base_config_dict [ 'configuration' ] . update ( base_configuration_dict ) #NEWLINE# child_config_dict . update ( base_config_dict ) #NEWLINE# #UNINDENT# return child_config_dict