[openstack-dev] Cloudpipe extension response format

Sean Dague sdague at linux.vnet.ibm.com
Wed Sep 26 16:17:38 UTC 2012


On 09/26/2012 09:39 AM, Dolph Mathews wrote:
> Keystone's xml serializer addresses this just as you describe. Given the
> original JSON, it would produce:
>
>      <cloudpipes>
>          <cloudpipe project_id="__b7f6d49c12714e96a05fada4aba4ea__d6"
> ...etc... />
>      </cloudpipes>
>
> By recognizing that A) "cloudpipes" *looks* plural, and B) it refers to
> a list of stuff, so assume that "cloudpipe" is the child element by
> convention (after checking for hardcoded exceptions):
>
> https://github.com/openstack/keystone/blob/master/keystone/common/serializer.py#L170

Interesting, so we should probably work on getting the serializer from 
keystone into common then, and redistribute out from there to the other 
projects?

	-Sean

-- 
Sean Dague
IBM Linux Technology Center
email: sdague at linux.vnet.ibm.com
alt-email: sldague at us.ibm.com




More information about the OpenStack-dev mailing list