As you probably know, Zope 2 can have multiple directories containing
product modules, which are put inside the Products. namespace at
runtime.
A way to make autocompletion work inside Zope 2 products is to put an
__init__.py file inside the instance Products directory; however,
this approach doesn't work in instances with multiple products
directories defined in zope.conf.
I gave a quick look at Pydev source code and found the
getModulesFoundStructure method, then I arbitrarily changed each top
module name by prefixing the string "Products." to it; now for every
top module in my test project, I get autocompletion working as I'd like.
Is there any evident side effect which could be caused by this kind
of module name mangling?
If not, I would like to implement a new list of source folders in the
project properties called "Zope2 products source folders" which
always get "Products." appended by the ModuleManager, in order to
ease developing on instances with multiple products directories.
Best,
Fabio Corneti
in...@co...
|