gcb_web_auth/backends/base.py
def harmonize_dict(mapping, input_dict):
        """
        Sanitizes incoming data into a dictionary with keys valid for a given domain (e.g. Django user models)
        :param mapping: Dict containing the mapping of incoming to outgoing data.
        :param input_dict: dict of data to be harmonized
        :return: dict containing keys from mapping and values from input_dict
        """
        output_dict = dict()
        for k, v in mapping.items():
            if v in input_dict:
                output_dict[k] = input_dict[v]
        return output_dict

        Sanitizes incoming data into a dictionary with keys valid for a given domain (e.g. Django user models)
        :param mapping: Dict containing the mapping of incoming to outgoing data.
        :param input_dict: dict of data to be harmonized
        :return: dict containing keys from mapping and values from input_dict
        
Sanitizes incoming data into a dictionary with keys valid for a given domain
Sanitizes incoming data into a dictionary with keys valid for a given domain
def harmonize_dict(mapping, input_dict):
        output_dict = dict()
        for k, v in mapping.items():
            if v in input_dict:
                output_dict[k] = input_dict[v]
        return output_dict
def harmonize_dict ( mapping , input_dict ) : output_dict = dict ( ) for k , v in mapping . items ( ) : if v in input_dict : output_dict [ k ] = input_dict [ v ] return output_dict
Sanitizes incoming data into a dictionary with keys valid for a given domain (e.g.
Sanitizes incoming data into a dictionary with keys valid for a given domain ( e . g .
"""
        Sanitizes incoming data into a dictionary with keys valid for a given domain (e.g. Django user models)
        :param mapping: Dict containing the mapping of incoming to outgoing data.
        :param input_dict: dict of data to be harmonized
        :return: dict containing keys from mapping and values from input_dict
        """
dict containing keys from mapping and values from input_dict
dict containing keys from mapping and values from input_dict
mapping
Dict containing the mapping of incoming to outgoing data.
Dict containing the mapping of incoming to outgoing data .
input_dict
dict of data to be harmonized
dict of data to be harmonized