← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 520006] Re: Incorrect organisation of the code

 

** Changed in: openobject-server/trunk
     Assignee: Stephane Wirtel (OpenERP) (stephane-openerp) => OpenERP's Framework R&D (openerp-dev-framework)

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/520006

Title:
  Incorrect organisation of the code

Status in OpenObject Server:
  Confirmed
Status in OpenObject Server trunk series:
  Confirmed

Bug description:
  I was trying to create a zc.buildout style project of deployement of OpenERP. I created a customer python egg project which will act as a kind of patch to customized our OpenERP installation.

By doing that I discovered that all the code of  OpenObject lib is located in the bin/ dir and cannot be used as an external library. It's a very stange organisation of the code. 

By example, of you take a look at the openobject-client-web project, there's is a directory at the top named "openobject" containing all the code. I can refer to this namespace in other project. But for the server it's very impossible do doing that.

Maybe converting OpenObject as good python citizen would be a important. no ? And if not, how can I import a module of OpenObject in a project ?

I proposed the following architecture:

openobject.server/
    setup.py
    ...
    openobject/
         __init__.py
         server/
             addons/
             ir/
             osv/
             pychart/
             report/
             service/
             ssl/
             tools/
             wizard/
             workflow/
             ...