Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 499238

Summary: app-office/openerp - add instant messaging support
Product: Gentoo Linux Reporter: A. Person <tesoro302>
Component: Current packagesAssignee: Yixun Lan <dlan>
Status: RESOLVED WONTFIX    
Severity: normal CC: dlan
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch to install /usr/bin/openerp-gevent

Description A. Person 2014-01-25 15:45:02 UTC
OpenERP 8 has an instant messaging feature and there is some guidance on setting it up here:

http://help.openerp.com/question/22521/how-to-activate-chat-im-in-v8-trunk/

dev-python/gevent and dev-python/psycopg are in portage and here is an ebuild for dev-python/gevent-psycopg2 which should cover the dependencies:

https://bugs.gentoo.org/show_bug.cgi?id=499090

I haven't gotten instant messaging to work yet though.  I'll post here again when I do.  It will require a tweak to /etc/init.d/openerp.

Reproducible: Always
Comment 1 A. Person 2014-01-27 16:36:14 UTC
I got it working and it's very cool.  There is another dependency:

https://bugs.gentoo.org/show_bug.cgi?id=499466

setup.py needs to be patched and /etc/init.d/openerp needs to change the /usr/bin/openerp-server reference to /usr/bin/openerp-gevent.  Would a "gevent" USE flag be appropriate for this?  After these changes, the openerp server listens on port 6072 instead of 6069.

Someone in the above-referenced openerp.com thread mentioned:

"Gevent is based on eventlet. Evenlet use the coroutine not thread. So you open only one thread for all the connection, and the block loop, block all the coroutine, it 's dangerous."

I can't follow that.  Does anyone understand what he means?
Comment 2 A. Person 2014-01-27 16:37:06 UTC
Created attachment 368894 [details, diff]
patch to install /usr/bin/openerp-gevent