Re: [Zope3-Users] Eclipse + PyDev + deferred imports

2009-08-11 Thread Shailesh Kumar
I certainly agree :) My workaround plan is to use a global search on ._api in my codebase and remove them when I move on from 3.3.1 to later version. - Shailesh On Wed, Aug 12, 2009 at 6:18 AM, Martin Aspeli > wrote: > Shailesh Kumar wrote: > > I generally make it /from zope.component._api imp

Re: [Zope3-Users] Eclipse + PyDev + deferred imports

2009-08-11 Thread andrew
On Wed, 2009-08-12 at 08:49 +0800, Martin Aspeli wrote: > andrew wrote: > > Thanks for that, Dan, and also to Sailesh for the suggested workaround. > > I'll look into upgrading the relevant zope packages as the best answer. > > That's not a good idea. If you upgrade packages willy-nilly, you'll ge

Re: [Zope3-Users] Eclipse + PyDev + deferred imports

2009-08-11 Thread Martin Aspeli
andrew wrote: > Thanks for that, Dan, and also to Sailesh for the suggested workaround. > I'll look into upgrading the relevant zope packages as the best answer. That's not a good idea. If you upgrade packages willy-nilly, you'll get version conflicts. Stick to the tested known-good sets unless y

Re: [Zope3-Users] Eclipse + PyDev + deferred imports

2009-08-11 Thread Martin Aspeli
Shailesh Kumar wrote: > 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'. You shouldn't do this. You shouldn't import from a module starting with an underscore. It's the dev

Re: [Zope3-Users] Eclipse + PyDev + deferred imports

2009-08-11 Thread andrew
Thanks for that, Dan, and also to Sailesh for the suggested workaround. I'll look into upgrading the relevant zope packages as the best answer. On Tue, 2009-08-11 at 10:02 +0400, Dan Korostelev wrote: > IIRC, in newer versions of zope.component and other packages, deferred > imports are not used a

Re: [Zope3-Users] Eclipse + PyDev + deferred imports

2009-08-10 Thread Dan Korostelev
IIRC, in newer versions of zope.component and other packages, deferred imports are not used anymore, so PyDev sees the import and does completion. 2009/8/11 andrew : > Hi All, > > Not a big problem, but it would be nice to be able to remove the > annoying "unresolved import" messages I get in PyDe

Re: [Zope3-Users] Eclipse + PyDev + deferred imports

2009-08-10 Thread Shailesh Kumar
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, andr

[Zope3-Users] Eclipse + PyDev + deferred imports

2009-08-10 Thread andrew
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 ar