Hi everyone,
I'm here to ask to you some help for the crm_livechat module. There are no
ressources on the net for this module, whereas it can interess many client.
Here the action I did :
-Install crm_livechat in OpenERP
-Configure Jabber Account in CRM/Live Chat/Configuration/Jabber Account
Jabber Account : Nyx
Server : jabber.synerpgy.fr
Account Login : Nyx
Account Password : ****
SSL with port remapped
Port : 5222
Of course the account exist, we used openfire for the jabber server.
I create a Visitor account for the test.
-Configure Visitor Account in CRM/Live Chat/Configuration/Visitor Account
Account name : Visitor
Available IP : Null, no idea what to write here
Available Date : Null, no idea what to write here
Jabber account : Visitor
Status : Active
-Configure Visitor Account in CRM/Live Chat/Configuration/Live Chat Session
Livechat Account : ERP
State : Active
Maximum users : 5
Users Account
User Name : Nyx
User : Administrator
Jabber Account : Nyx
Language Regex : Null
State : Active
Next I installed the package python-xmpp (i'm under debian lenny), and i go in
server/bin/addons/crm-livechat/crm-lc/ .
I modify the file dev.cfg :
[crm]
cntype = 'http'
cnhost = 'localhost'
cnport = '8069'
dbname = 'test'
dbuser = 'admin'
dbpwd = 'admin'
and I launch the start-livechat.py. Launch succesfull.
I connect with my browser at localhost:8080, I see the LiveChat Session ERP (so
connexion with OpenERP sucess). But when I try to click on it, nothing happen.
The log of openerp server :
[2009-12-26 20:39:10,994] INFO:web-service:successful login from 'admin' using
database 'test'
IDS ::::::: []
IDS ::::::: []
The log (more interesting) of the livechat server :
2009-12-26 20:39:13,367 cherrypy.msg INFO HTTP: Page handler: <bound method
ChatFunc.start_chat of <livechat>>
Traceback (most recent call last):
File
"/usr/lib/python2.5/site-packages/CherryPy-2.3.0-py2.5.egg/cherrypy/_cphttptools.py",
line 121, in _run
self.main()
File
"/usr/lib/python2.5/site-packages/CherryPy-2.3.0-py2.5.egg/cherrypy/_cphttptools.py",
line 264, in main
body = page_handler(*virtual_path, **self.params)
File "<string>", line 3, in start_chat
File
"/usr/lib/python2.5/site-packages/TurboGears-1.0.8-py2.5.egg/turbogears/controllers.py",
line 360, in expose
*args, **kw)
File "<string>", line 5, in run_with_transaction
File
"/usr/lib/python2.5/site-packages/TurboGears-1.0.8-py2.5.egg/turbogears/database.py",
line 359, in so_rwt
retval = func(*args, **kw)
File "<string>", line 5, in _expose
File
"/usr/lib/python2.5/site-packages/TurboGears-1.0.8-py2.5.egg/turbogears/controllers.py",
line 373, in <lambda>
mapping, fragment, args, kw)))
File
"/usr/lib/python2.5/site-packages/TurboGears-1.0.8-py2.5.egg/turbogears/controllers.py",
line 410, in _execute_func
output = errorhandling.try_call(func, *args, **kw)
File
"/usr/lib/python2.5/site-packages/TurboGears-1.0.8-py2.5.egg/turbogears/errorhandling.py",
line 77, in try_call
return func(self, *args, **kw)
File
"/opt/5.0.6.2_openerp/server/bin/addons/crm_livechat/crm-lc/livechat/subcontrollers/livechat/chatfunc.py",
line 74, in start_chat
message = self.mainhandler(cl,topicid)
File
"/opt/5.0.6.2_openerp/server/bin/addons/crm_livechat/crm-lc/livechat/subcontrollers/livechat/chatfunc.py",
line 85, in mainhandler
cl = self.myConnection(topicid)
File
"/opt/5.0.6.2_openerp/server/bin/addons/crm_livechat/crm-lc/livechat/subcontrollers/livechat/chatfunc.py",
line 273, in myConnection
self.partid = self.partnerdata['jid']
KeyError: 'jid'
Request Headers:
REFERER: http://172.16.149.128:8080/chatfunc/select_topic
Content-Length: 9
ACCEPT-CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.7
USER-AGENT: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.1.5) Gecko/20091109
Ubuntu/9.10 (karmic) Firefox/3.5.5 (.NET CLR 3.5.30729)
CONNECTION: keep-alive
COOKIE: terp_db=test; terp_user=admin;
session_id=ad605032f3dc326d7373cbeece720ecff904b35c
PRAGMA: no-cache
CONTENT-LENGTH: 9
HOST: 172.16.149.128:8080
CACHE-CONTROL: no-cache
CONTENT-TYPE: application/x-www-form-urlencoded; charset=UTF-8
ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Remote-Addr: ::ffff:172.16.149.1
ACCEPT-LANGUAGE: fr-fr,en-us;q=0.7,en;q=0.3
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
ACCEPT-ENCODING: gzip,deflate
KEEP-ALIVE: 300
Thanks in advance for your help.
-------------------- m2f --------------------
--
http://www.openobject.com/forum/viewtopic.php?p=50187#50187
-------------------- m2f --------------------
_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users