I generally make it <i>from zope.component._api import getUtility</i> to make PyDev happy. It doesn&#39;t hurt the code and I don&#39;t have to see the &#39;unresolved import message&#39;. <br><br>This is even worse when importing reactor from twisted and using its methods. <br>
<br>- Shailesh<br><br><br><div class="gmail_quote">On Tue, Aug 11, 2009 at 10:25 AM, andrew <span dir="ltr">&lt;<a href="mailto:andrew@reurbanise.co.nz">andrew@reurbanise.co.nz</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi All,<br>
<br>
Not a big problem, but it would be nice to be able to remove the<br>
annoying &quot;unresolved import&quot; messages I get in PyDev (in Eclipse) when<br>
doing, e.g.:<br>
<br>
from zope.component import getUtility<br>
<br>
which is a Zope deferred import, hence PyDev knows nothing about it.<br>
<br>
Has anyone else found a way around this ?<br>
<br>
Cheers, Andrew.<br>
<br>
_______________________________________________<br>
Zope3-users mailing list<br>
<a href="mailto:Zope3-users@zope.org">Zope3-users@zope.org</a><br>
<a href="http://mail.zope.org/mailman/listinfo/zope3-users" target="_blank">http://mail.zope.org/mailman/listinfo/zope3-users</a><br>
</blockquote></div><br>