The code at [1] for extending the resource map with the standard attributes for a resource declared in api_collections, does only work for plain resources, but not for sub-resources (it produces a {'resource': attribute_dict} dictionary, while a {'resource': {'parameters': attribute_dict}} would be required by the code at [2].
This makes it impossible to add standard attributes to sub-resources.
The code at [1] for extending the resource map with the standard attributes for a resource declared in api_collections, does only work for plain resources, but not for sub-resources (it produces a {'resource': attribute_dict} dictionary, while a {'resource': {'parameters': attribute_dict}} would be required by the code at [2].
This makes it impossible to add standard attributes to sub-resources.
[1] http:// codesearch. openstack. org/?q= rs_map %3D standard_ attr.get_ standard_ attr_resource_ model_map
[2] http:// git.openstack. org/cgit/ openstack/ neutron/ tree/neutron/ api/extensions. py#n349