[Ovirt-devel] [PATCH server] Revised attempt at refactoring the vm_controller using the service layer.

David Lutterkort lutter at redhat.com
Wed Apr 22 18:24:00 UTC 2009


On Wed, 2009-04-22 at 14:19 -0400, Scott Seago wrote:
> For edits you only need to include changed attributes in the hash. So 
> you could call svc_obj.svc_update(vm_id, {:description => 'changed 
> description'}).

Yeah, that makes much more sense than my implict assumption that we have
a special method to modify single properties.

> I'm still slightly confused on how VmDef relates to the service classes. 
> Is VmDef the class that includes the VmService module? Or is VmDef 
> something longer-lived and more related to the activerecord stuff directly?

IIRC VmDef is the QMF object that is exposed for a Vm, i.e. the QMF
'view' of a virtual machine, not the controller.

David





More information about the ovirt-devel mailing list