I generally make it *from zope.component._api import getUtility* to make
PyDev happy. It doesn't hurt the code and I don't have to see the
'unresolved import message'.

This is even worse when importing reactor from twisted and using its
methods.

- Shailesh


On Tue, Aug 11, 2009 at 10:25 AM, andrew <and...@reurbanise.co.nz> wrote:

> Hi All,
>
> Not a big problem, but it would be nice to be able to remove the
> annoying "unresolved import" messages I get in PyDev (in Eclipse) when
> doing, e.g.:
>
> from zope.component import getUtility
>
> which is a Zope deferred import, hence PyDev knows nothing about it.
>
> Has anyone else found a way around this ?
>
> Cheers, Andrew.
>
> _______________________________________________
> Zope3-users mailing list
> Zope3-users@zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users
>
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to