Le Thu, 12 May 2011 10:51:15 +0200,
Paul J Stevens <[email protected]> a écrit :
> Betrand,
>
> I've been trying to get this code working somehow.
>
> Do I need to setup something extra? I have a jsonrpc server listening
> on localhost:8000 with a test database.
>
> But your code uses { 'url': '/' + proxy.database }
>
> I assume however that the url should specify the host and port as
> well, but when I use:
>
> {'url': 'http://localhost:8000/' + proxy.database }
>
> I get a 501 Unsupported method ('OPTIONS')
>
> so what am I doing wrong?
My local config is the following:
- I have a json_data directory in the trytond directory
- I have "jsonport = 8888" and "jsondata_path = json_data" in my
trytond.conf
- I have a directory 'proteus.js' in json_data (with the content of the
codereview)
So I point my browser to "http://localhost:8888/proteus.js/test.html"
to get the test page.
HTH
Bertrand
>
>
> On 03-05-11 22:50, [email protected] wrote:
> > Reviewers: ,
> >
> >
> >
> > Please review this at http://codereview.tryton.org/24003/
> >
> > Affected files:
> > A proteus.js
> > A test.html
> > A test.js
> >
> >
>
>
--
Bertrand Chenal
B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email: [email protected]
Website: http://www.b2ck.com/
--
[email protected] mailing list