IRC logs of #tryton for Saturday, 2013-10-26 #tryton log beginning Sat Oct 26 00:00:02 CEST 2013
2013-10-26 01:05 <breno> hi! I was wondering if nowadays, if I were to implement a Django frontend to Tryton (Django as a Tryton client), would it be advisable to go with the Proteus route or is this: still the recommended way to go for that scenario?
2013-10-26 01:24 <cedk> breno: better to use nereid
2013-10-26 01:25 <cedk>
2013-10-26 01:38 <motaro> downloaded the new trytond, can't connect to it now. Any ideas
2013-10-26 01:39 <breno> cedk: hi Cedric, thanks, I've read about nereid but it seems more from comments on the Google Group that it is still needs work done (and judging from the repo it is far from actively maintained). I'm trying to develop an ERP for SMBs and it'd be a joy to be able to use Django for the frontend with tryton powering the backend. If I were to go with the Django scenario, would you suggest Proteus or something like
2013-10-26 01:40 <b0r7> motaro: can you be more specific? waht do you meean cant connect? are tryton and trytond same version;
2013-10-26 01:42 <b0r7> motaro: idea: tryond.conf listening port
2013-10-26 01:45 <motaro> Ok, Wanted to install a new module, I used to have trytond 2.8 and updated everything to 3.0, ok no problem is a test server anyways. Updated the client to 3.0 also now when I try to connect to the server the client 'tryton' tells me 'could not connect to the server'
2013-10-26 01:45 <motaro> the conf file is still the same the server only says ] INFO:database:connect to "template1"
2013-10-26 01:47 <motaro> if the server says that it means it receives the request
2013-10-26 01:51 <motaro> And I must add why is it that Pypi is updated, and the mercurial repository still in 2.8
2013-10-26 01:54 <motaro> breno; I think that you should take a look to nereid and see how they are comunicating to the server, don't know if you would like to add your effor to the official web client that the community is developing.
2013-10-26 01:55 <motaro> breno: the official web client is based on jQuery.
2013-10-26 01:58 <breno> will do, just want to know what you guys think about Django communicating via Proteus or via something like
2013-10-26 01:58 <breno> i suppose both are better options than going with the JSON-RPC route, but which one would you choose?
2013-10-26 02:02 <motaro> breno: Go with Proteus is the new effort.
2013-10-26 02:03 <breno> k
2013-10-26 02:03 <breno> last question, I guess I'd be better off starting this project basing myself on Tryon 3.0, right?
2013-10-26 02:03 <b0r7> motaro: mhm thats odd.. have you tried changing the port in the client form 8000 to 800 or so and than back again.. just to have him try again fresh
2013-10-26 02:39 <motaro> b0r7, don't know but it seems that the problem is with the client
2013-10-26 02:39 <motaro> telnet to the server works.
2013-10-26 02:40 <b0r7> maybe get the client and run it from source? if you havent already
2013-10-26 02:42 <b0r7> i dont know.. never had that problem and all is running fine on my side with 3.0..
2013-10-26 02:44 <b0r7> mhm.. you have other dbs than 'template1, so is the server stopping at template1 and not contiuing or ist it the only one?
2013-10-26 02:45 <b0r7> i mean.. when my client connects the sesrver is outputting INFO:database:connect to 'template1' and after that in each line the other postgres dbs that ar accessable for the 'tryton' user
2013-10-26 02:51 <motaro> no it stops at 'template 1' eventhough there is another database.
2013-10-26 02:52 <b0r7> ah.. i think 'chown -R tryton:tryton /path/to/tryton' could help
2013-10-26 02:52 <b0r7> path to trytond, i mean
2013-10-26 02:55 <b0r7> so tryton tries to ask postgres as the 'wrong' user (not tryton) for the dbs and postgres is answering: what? you don't get to see anything you weirdo user you, you're not 'tryton' man (supposed to be funny, its late here) ;=
2013-10-26 02:59 <b0r7> in other words how do you start the tryton-server .. and maybe its a user right issue.. your milage with the usernames and settings may vary
2013-10-26 03:00 <motaro> I don't know if it applies because I'm running it as a python module
2013-10-26 03:00 <motaro> basically is the script the module installs in /usr/bin/trytond
2013-10-26 03:01 <motaro> with a normal user as the executer
2013-10-26 03:11 <motaro> let me restart maybe it's some stupid library thing
2013-10-26 03:16 <motaro> no bad choice
2013-10-26 03:16 <motaro> same output
2013-10-26 03:22 <b0r7> try starting the server as user 'tryton'
2013-10-26 03:23 <b0r7> i could reproduce your issue when i started tryton as not 'tryton'
2013-10-26 03:23 <b0r7> sorry i keep refering to tryton as trytond
2013-10-26 03:26 -!- [1]b0r7( has left #tryton
2013-10-26 03:31 <motaro> no that's not it
2013-10-26 03:32 <motaro> but if it connects to template1 it means that the tryton user is working
2013-10-26 03:32 <motaro> inside postgres\
2013-10-26 03:32 <b0r7> mhm yeah not really
2013-10-26 03:33 <b0r7> what i did: (as root) $ trytond
2013-10-26 03:34 <b0r7> then i tried to connect and got the same INFO:database:connect to "template1"
2013-10-26 03:34 <b0r7> then (as root) $ su tryton; and $ trytond
2013-10-26 03:34 <b0r7> and all dbs where listed
2013-10-26 03:35 <b0r7> im on debian
2013-10-26 03:36 <b0r7> but when you ruled it out, its not it, i guess
2013-10-26 03:37 <motaro> listen to this I tried to create a new database directly, and it says that it failed exception: Invalid value for parameter "TimeZone": "AST"
2013-10-26 03:48 <b0r7> any hints in /var/log/postgresql/posgresql-VERSIONNUMBER-main.log?
2013-10-26 03:49 <motaro> good one is the same error when I try to connect normally
2013-10-26 03:55 <motaro> b0r7, you are not going to believe this I set the timezone in it's complete name inside the trytond.conf file and now it works.
2013-10-26 03:56 <b0r7> jey..
2013-10-26 03:59 <b0r7> the postgres.log should've been brought into account earlier.. i guess, well: learned something today
2013-10-26 03:59 <motaro> yes thank you for your help
2013-10-26 04:00 <b0r7> np
2013-10-26 06:56 <breno> motaro: heya :) got disconnected, got just one last question: I guess I'd be better off starting this project basing it on Tryton 3.0, right?
2013-10-26 14:07 <sharoonthomas> cedk: taking your attention to an IRC discussion last year about cumulative taxes:
2013-10-26 14:07 <sharoonthomas> cedk: has anything changed ?
2013-10-26 14:16 <sharoonthomas> cedk: if I really wanted to implement this functionality - any tips ?

Generated by 2.17.3 by Marius Gedminas - find it at!