[Openstack] using objects returned from DB layer

Aaron Lee aaron.lee at RACKSPACE.COM
Thu Dec 15 16:17:23 UTC 2011


-1

By using the dict style access to these records we are tying ourselves to the internal implementation of those records. If we want to be able to move the 'data model' logic out of the 'process' logic we will need to access the models as attributes and not dict items. 

We should confine the dict-style access to the db records to the data models.

~ Aaron

On Dec 15, 2011, at 9:17 AM, Jay Pipes wrote:

> On Thu, Dec 15, 2011 at 3:29 AM, Rick Harris <rick.harris at rackspace.com> wrote:
>> ++ on moving to a consistent dict-style syntax.
> 
> +1 from me, too.
> 
> -jay
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp





More information about the Openstack mailing list