From: SourceForge.net <no...@so...> - 2006-06-02 22:19:42
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=3761449 By: treaves I've posted before relating to debugging in the following situation, but those issues were not resolved (although thanks to Fabio for trying). After some further investigation, I think a large part of the problem is that I have not setup my Eclipse project properly. I'm trying to develope a Zope Plone application. With Zope, Products (as they are called) are all installed in a Products directory. So my Product is in a folder named MyProduct. In the MyProduct folder is the __init__.py file. Here is a sample of the header: from Products.CMFCore import CMFCorePermissions from Products.Archetypes import listTypes from Products.MyProduct.config import * from Products.MyProduct.MyProduct.SomeType import * So in the MyProduct folder, I also have a file config.py, and another folder named MyProduct, and in that folder, a file named SomeType.py. Now, my projects folder - the one in source control - is MyProduct. So to create a project, I browsed my Subversion server, and checked out the MyProduct folder into a new project. So in worksoace, I have MyProduct. I also set the project up to use PyLint. In the project properties, I've added the Zope Products folder as an external source folder. (/usr/zope_sites/MySite/Products) This folder has subfolders of CMFCore, Archetypes, etc. Neither PyLint nor PyDev are able to find anything in the above import list. None of them. I thought perhaps for MyProduct.SomeType this was due to to the Products prefix. So I set up a new project, created a Products folder, and then added the root folder as the source folder. workspace/NewProject/Products/MyProduct So in this case, the source folder is NewProject. Still nothing. What am I doing wrong? Where my code has to look like that in the above imports, what is the correct way to setup the project? What should the source folder be set to? What folder should be added as an external source folder so that PyDev & PyLint can find CMFCore, and such? ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 |