<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi All:<br>
<br>
I replaced <font face="FreeSerif"><font face="sans-serif">all</font></font><b><font
color="#333333" face="FreeSerif"><i>
db.instance_get_all_by_host()</i></font></b><font
face="monospace"> <font face="sans-serif">in nova and tested it
using <b>tox</b>.<br>
Might it be useful? If so, Which is the better way to propose it
to OpenStack community?<br>
<br>
Best regards,<br>
<br>
Daniele<br>
<br>
</font></font><br>
<div class="moz-cite-prefix">On 10/23/2014 09:01 PM, Dan Smith
wrote:<br>
</div>
<blockquote cite="mid:54495096.7080706@danplanet.com" type="cite">
<blockquote type="cite">
<pre wrap=""> When I fix some bugs, I found that some code in
nova/compute/api.py
sometimes we use db ,sometimes we use objects.... do we have
any criteria for it? I knew we can't access db in compute layer code,
how about others ? prefer object or db direct access? thanks
</pre>
</blockquote>
<pre wrap="">
Prefer objects, and any remaining db.* usage anywhere (other than the
object code itself) is not only a candidate for cleanup, it's much
appreciated :)
--Dan
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
OpenStack-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</pre>
</blockquote>
<br>
<br>
</body>
</html>