Hi,

  I m quite a newbie in zc.buildout, but now i have done some tests and first 
things that appears is the skel is not pythonic in my opinion.

I think we have to build a folder structure that corresponding to the 
namespace structure of each modules.

parts/plone/CMFPlone for me is a wrong structure. No way for a new developper 
to understand that this folder correspond to Products.CMFPlone. In Java 
world, you have to make a folder Products to be able to build the CMFPlone 
module.

parts/plone/Products/CMFPlone is more pythonic, more easy to understand, and 
more easy for ide to parse and index the source for completion purpose.

So to get this, and be able to use the completion in PyDev, i have modify the 
plone.recipe.distros:

from 
class Recipe:
    ...
    def install(self):
        dest = self.options['location']
        ...
        os.mkdir(dest)

to
class Recipe:
    ...
    def install(self):
        dest = '%s/Products'%self.options['location']
        ...
        os.makedirs(dest)
        file('%s/__init__.py'%dest)

This install every Products in a Products folder with a __init__.py file.

You need to modify your buildout.cfg to specify the products folder, but it s 
quite easy.

Next the ZopeSkel create a "products" folder, i have moved it to Products 
folder
and update the buildout.cfg file in consequence.

i post this mail to discuss about that modification and if it s possible to 
integrate it in the recipe and ZopeSkel. My goal is to remove zope "magic"
 aspect, and keep the structure as simple as possible.

--
JeanMichel FRANCOIS
Makina-Corpus

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to