(value, defaults=None)
return item_data
Get a value and turn it into a dict suitable for the config.
Get a value and turn it into a dict suitable for the config.
Get a value and turn it into a dict suitable for the config .
def _process_input(value, defaults=None):
    """Get a value and turn it into a dict suitable for the config."""
    item_data = {}
    if defaults is not None:
        for k, v in iteritems(defaults):
            item_data[k] = v
    item_data['value'] = value
    if 'type' not in item_data:
        item_data['type'] = type(value)
    return item_data
def _process_input ( value , defaults = None ) : item_data = { } if defaults is not None : for k , v in iteritems ( defaults ) : item_data [ k ] = v item_data [ 'value' ] = value if 'type' not in item_data : item_data [ 'type' ] = type ( value ) return item_data