genesis/utils.py
def iterate_fields(fields, schema):
    """Recursively iterate over all DictField sub-fields.

    :param fields: Field instance (e.g. input)
    :type fields: dict
    :param schema: Schema instance (e.g. input_schema)
    :type schema: dict

    """
    schema_dict = {val['name']: val for val in schema}
    for field_id, properties in fields.iteritems():
        if 'group' in schema_dict[field_id]:
            for _field_schema, _fields in iterate_fields(properties, schema_dict[field_id]['group']):
                yield (_field_schema, _fields)
        else:
            yield (schema_dict[field_id], fields)
def iterate_fields(fields, schema):
    schema_dict = {val['name']: val for val in schema}
    for field_id, properties in fields.iteritems():
        if 'group' in schema_dict[field_id]:
            for _field_schema, _fields in iterate_fields(properties, schema_dict[field_id]['group']):
                yield (_field_schema, _fields)
        else:
            yield (schema_dict[field_id], fields)
def iterate_fields ( fields , schema ) : schema_dict = { val [ 'name' ] : val for val in schema } for field_id , properties in fields . iteritems ( ) : if 'group' in schema_dict [ field_id ] : for _field_schema , _fields in iterate_fields ( properties , schema_dict [ field_id ] [ 'group' ] ) : yield ( _field_schema , _fields ) else : yield ( schema_dict [ field_id ] , fields )
Recursively iterate over all DictField sub-fields.

    :param fields: Field instance (e.g. input)
    :type fields: dict
    :param schema: Schema instance (e.g. input_schema)
    :type schema: dict
Recursively iterate over all DictField sub - fields .