deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Fojtik ...@mifo.sk>
Subject Re: RFC: embedded CIMI collections
Date Tue, 09 Oct 2012 14:49:13 GMT
On Oct 6, 2012, at 2:52 AM, lutter@redhat.com wrote:

ACK. I rebased the $expand patches and make them work with this
collections. 

  -- Michal

> 
> These series of patches adds support for embedded collections for CIMI
> models. It's not quite perfect yet, since it doesn't produce the exactly
> right XML yet, nor is it possible to parse objects with embedded
> collections.
> 
> The main reason I like this better than the way Michal did it is because it
> makes it unnecessary to have XXXCollection classes for
> collections. Instead, you can just write
> 
>  collection :things, :class => CIMI::Model::Thing
> 
> For example, for the disks collection in machine, we simply have
> 
>  class CIMI::Model::Machine < CIMI::Model::Base
>    ...
>    collection :disks, :class => CIMI::Model::Disk
>    ...
>  end
> 
> The interesting stuff are the last three patches in the series. The other
> ones can probably be acked and committed as they are.
> 
> David


Mime
View raw message