Logo Search packages:      
Sourcecode: xdeb version File versions  Download package

def config::TargetConfig::MergeConfig (   self,
  merged_config,
  option_name,
  values 
)

Merges a new value into the configuration dictionary.

Given a set of configuration values in merged_config, either add or
remove the values from the set of values in
merged_config[option_name].

Args:
  merged_config: A dictionary mapping an option name to a set of
    values.
  option_name: The name of the option to modify.
  values: A string of white-space separated values to add or remove
    from merged_config[option_name].

Definition at line 193 of file config.py.

00193                                                              :
        """Merges a new value into the configuration dictionary.

        Given a set of configuration values in merged_config, either add or
        remove the values from the set of values in
        merged_config[option_name].

        Args:
          merged_config: A dictionary mapping an option name to a set of
            values.
          option_name: The name of the option to modify.
          values: A string of white-space separated values to add or remove
            from merged_config[option_name].
        """
        if option_name[0] == '+':
            real_name = option_name[1:]
            if merged_config.has_key(real_name):
                merged_config[real_name].update(values)
            else:
                merged_config[real_name] = set(values)
        elif option_name[0] == '-':
            real_name = option_name[1:]
            if merged_config.has_key(real_name):
                merged_config[real_name].difference_update(values)
        else:
            merged_config[option_name] = set(values)

    @property
    def architecture(self):


Generated by  Doxygen 1.6.0   Back to index