> This seems good. Just a question really. Why is the:
> inst_dict[i['name']] = _inst_type_query_to_dict(i)
>
> necessary. It seems like the joined load should handle populating the
> subobjects. If there is some reason to convert to nested dictionaries, is
> utils.to_primitive() lacking something that requires a custom method to be
> written?
Having gone over the code again, I now recall that a helper method is needed is to convert from:
> This seems good. Just a question really. Why is the: i['name' ]] = _inst_type_ query_to_ dict(i) primitive( ) lacking something that requires a custom method to be
> inst_dict[
>
> necessary. It seems like the joined load should handle populating the
> subobjects. If there is some reason to convert to nested dictionaries, is
> utils.to_
> written?
Having gone over the code again, I now recall that a helper method is needed is to convert from:
'extra_specs': [{'key': 'k1', 'value': 'v1', ...}, {'key': 'k2', 'value': 'v2', ...}, ...]
to
'extra_specs': {'k1':'v1', 'k2':'v2', ...}
I've renamed the helper method and modified the docstring to clarify this in the code.