openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #06150
Re: using objects returned from DB layer
-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@xxxxxxxxxxxxx> wrote:
>> ++ on moving to a consistent dict-style syntax.
>
> +1 from me, too.
>
> -jay
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
References