[6.1 trunk] check for module "web" fails

Asked by Bogdan Stanciu

Hello,

Server rev. 3740 added a check in the openerp-server file, for the existence of the module 'web'.

However, I found no indication where and how to put this (what about the other modules in the openerp-web) module. Is there any doc on installing openerp-web, or adding the necessary modules?

thank you!
Bogdan

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Bogdan Stanciu
Solved:
Last query:
Last reply:
Revision history for this message
Vo Minh Thu (thu) said :
#1

The openerp-web project provides an 'addons' directory, which can be used together with any other addons directory. To use it, you need to add it to the addons-path option of the server.

I don't think we have updated the documentation yet.

Revision history for this message
Ferdinand (office-chricar) said :
#2

please what is the syntax of using multiple addon directories ?

Revision history for this message
Bogdan Stanciu (bstanciu) said :
#3

Thank you for your quick answer!

I still have one question: meanwhile I just copied the contents of the addons (web) into the main addons folder and restarted the server (not sure how to add to the addons-path).

It loads, from the log:
[2011-10-26 08:45:42,005][?] INFO:server:Stopping 1 services
[2011-10-26 08:45:42,314][?] INFO:server:Initiating shutdown
[2011-10-26 08:45:42,314][?] INFO:server:Hit CTRL-C again or send a second signal to force the shutdown.
[2011-10-26 08:45:43,997][?] INFO:server:OpenERP version 6.1dev
[2011-10-26 08:45:43,997][?] INFO:server:addons paths: /home/openerp/addons
[2011-10-26 08:45:43,998][?] INFO:server:database hostname: localhost
[2011-10-26 08:45:43,998][?] INFO:server:database port: 5432
[2011-10-26 08:45:43,998][?] INFO:server:database user: openerp
[2011-10-26 08:45:43,998][?] INFO:web-services:starting NET-RPC service on 0.0.0.0:8070
[2011-10-26 08:45:43,999][?] INFO:server:Starting 1 services
[2011-10-26 08:45:44,282][?] INFO:wsgi:HTTP service (werkzeug) running on 0.0.0.0:8069
[2011-10-26 08:45:44,284][?] INFO:web:embedded mode
[2011-10-26 08:45:44,324][?] INFO:web.common.http:Loading web_hello
[2011-10-26 08:45:44,326][?] INFO:web.common.http:Loading web_gantt
[2011-10-26 08:45:44,329][?] INFO:web.common.http:Loading share
[2011-10-26 08:45:44,351][?] INFO:web.common.http:Loading web_tests
[2011-10-26 08:45:44,356][?] INFO:web.common.http:Loading web_livechat
[2011-10-26 08:45:44,360][?] INFO:web.common.http:Loading web_dashboard
[2011-10-26 08:45:44,361][?] INFO:web.common.http:Loading web_graph
[2011-10-26 08:45:44,364][?] INFO:web.common.http:Loading auth_openid
[2011-10-26 08:45:44,458][?] INFO:web.common.http:Loading web_mobile
[2011-10-26 08:45:44,460][?] INFO:web.common.http:Loading web_chat
[2011-10-26 08:45:44,461][?] INFO:web.common.http:Loading web_calendar
[2011-10-26 08:45:44,464][?] INFO:web.common.http:Loading web_kanban
[2011-10-26 08:45:44,467][?] INFO:web.common.http:Loading mail
[2011-10-26 08:45:44,496][?] INFO:web.common.http:Loading web_rpc
[2011-10-26 08:45:44,498][?] INFO:web.common.http:Loading web_uservoice
[2011-10-26 08:45:44,500][?] INFO:web.common.http:Loading web
[2011-10-26 08:45:44,503][?] INFO:web.common.http:Loading web_diagram
[2011-10-26 08:45:44,505][?] INFO:web.common.http:Loading project
[2011-10-26 08:45:44,541][?] INFO:web.common.http:Loading pad
[2011-10-26 08:45:44,543][?] INFO:web.common.http:Loading point_of_sale
[2011-10-26 08:45:44,613][?] INFO:server:OpenERP server is running, waiting for connections...

however, the page is blank, and the log follows:
[2011-10-26 09:04:25,837][?] INFO:werkzeug:127.0.0.1 - - [26/Oct/2011 09:04:25] "GET /web/webclient/home?debug= HTTP/1.1" 200 -
[2011-10-26 09:04:26,766][?] INFO:werkzeug:127.0.0.1 - - [26/Oct/2011 09:04:26] "GET /web/static/src/xml/base.xml?debug=1319619866759 HTTP/1.1" 404 -

should I first install, uninstall, configure something else?

I did try to install openerp-web with python setup.py install, but it does not seem to start. I used it from the download folder with python openerp-web --port=8080, and it works.

thank you!
Bogdan

Revision history for this message
Vo Minh Thu (thu) said :
#4

Please make use of the --help command:

    ./openerp-server --help | grep addons-path -A1

An example of --addons-path use where 3 addons directories are used (regular addons, my home directory to quickly test a module thrown there, the web addons):

    --addons-path=/home/openerp/repos/addons/trunk,/home/openerp,/home/openerp/repos/web/trunk/addons/

Revision history for this message
Bogdan Stanciu (bstanciu) said :
#5

Thank you again,

I would say that this is quite equivalent to copying everything in one place. But more elegant!

I still have the previous question. Should I file a bug proper?

Thank you!
B

Revision history for this message
Bogdan Stanciu (bstanciu) said :
#6

Hello,

It might be that this is NOT just a more elegant way...
I did add the second path to the addons-path parameter (WITHOUT any space after the comma - as you wrote!!) and restarted the server and...

IT WORKS!

so I close this question.

THANK YOU!
b