Thank you Cedric.
I tried to connect using session =
config.set_xmlrpc("http://admin:admin@localhost:8000/tryton_database") but
it throws me the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.linux-x86_64/egg/proteus/config.py", line 341, in
set_xmlrpc
File "build/bdist.linux-x86_64/egg/proteus/config.py", line 308, in
__init__
File "/usr/lib/python2.7/xmlrpclib.py", line 1233, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.7/xmlrpclib.py", line 1587, in __request
verbose=self.__verbose
File "/usr/lib/python2.7/xmlrpclib.py", line 1273, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib/python2.7/xmlrpclib.py", line 1306, in single_request
return self.parse_response(response)
File "/usr/lib/python2.7/xmlrpclib.py", line 1482, in parse_response
return u.close()
File "/usr/lib/python2.7/xmlrpclib.py", line 794, in close
raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 255: '301: Moved Permanently'>
My cfg contains:
[web]
listen = *:8000
root = /home/frahergal/Semilimes/Tryton/sao
It works well for json-rpc and sao, but I cannot guess what happens with
xml-rpc.
Best regards.
El miércoles, 18 de mayo de 2016, 21:00:05 (UTC+3), Cédric Krier escribió:
>
> On 2016-05-18 08:23, PhiJ wrote:
> > Hi everybody,
> >
> > I migrated to Tryton 4.0 and I am trying to use Proteus as I made
> before,
> > connecting to my server with XML-RPC. However, I found that using the
> same
> > config as I had for Tryton 3.8, my server doesn't allow the connection
> and
> > throws: socket.error: [Errno 111] Connection refused
> >
> > In my config file I have the following section:
> > [xmlrpc]
> > listen = *:8069
> > ssl_xmlrpc = True
> >
> > And I use the method *session = config.set_xmlrpc(url) *to set the
> > connection.
> > Did something change about this topic? I couldn't find info about it,
> sorry
> > if I missed it.
>
> In 4.0, both protocols json-rpc and XML-RPC are served from the same
> interface. It is configured with
> http://doc.tryton.org/4.0/trytond/doc/topics/configuration.html#web
>
> --
> Cédric Krier - B2CK SPRL
> Email/Jabber: [email protected] <javascript:>
> Tel: +32 472 54 46 59
> Website: http://www.b2ck.com/
>
--
You received this message because you are subscribed to the Google Groups
"tryton" group.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tryton/136d19ec-1f2f-439e-a2d4-c67c5fa15fc7%40googlegroups.com.