[Openstack] using objects returned from DB layer

Aaron Lee aaron.lee at RACKSPACE.COM
Thu Dec 15 18:52:43 UTC 2011


On Dec 15, 2011, at 10:54 AM, Johannes Erdfelt wrote:

What kinds of things?

I'm just trying to better understand what is object-oriented about the
data returned from a database? What methods would we want to use?

JE

Any direct access to the data within a record should be encapsulated within the model object.

For example, changing an instance's progress should be a method on Instance, not a method buried in vmops.

~ Aaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20111215/63d44f6b/attachment.html>


More information about the Openstack mailing list