IRC logs of #tryton for Wednesday, 2011-11-30 #tryton log beginning Wed Nov 30 00:00:01 CET 2011
2011-11-30 01:12 <cjbarnes18> Hi all, I have tried using the time data type in a model, model inits OK but client has a fit, any one know of any issues here?
2011-11-30 01:19 <cedk> cjbarnes18: there is no widget for time
2011-11-30 01:58 <cjbarnes18> cedk: ahh, ok.
2011-11-30 01:59 <cjbarnes18> cedk: is there one for datetime?
2011-11-30 02:45 <cedk> cjbarnes18: yes
2011-11-30 02:45 <cedk> ACTION bbl
2011-11-30 09:49 -!- sampac( has left #tryton
2011-11-30 13:11 <ndn_pit> hello! how can I set size to image widget? my image is always in single size...
2011-11-30 13:14 <cedk> ndn_pit: you can use the attributed img_height, img_width but they will always have the same size for all records
2011-11-30 13:15 <ndn_pit> ok that is what I need, thank you
2011-11-30 13:34 <ndn_pit> cedk: how can I set my fields and labels in group aligned to top, by default they are aligned to middle?
2011-11-30 13:37 <cedk> ndn_pit: yalign
2011-11-30 13:38 <ndn_pit> cedk: yes, can i set it to group tag?
2011-11-30 13:44 <cedk> ndn_pit: no
2011-11-30 13:46 <ndn_pit> cedk: then how can i use yalign? i have 3 field in group, they are placed in 1 column and aligned to middle...
2011-11-30 13:48 <cedk> ndn_pit: define on each field where to put them
2011-11-30 14:49 <ndn_pit> cedk: how can I print report for One2Many field? It's OK if model opens from menu, but if I want to print from parent model?
2011-11-30 14:51 <cedk> ndn_pit: write a wizard
2011-11-30 15:20 <ndn_pit> cedk: I wrote wizard for child model (that is One2Many field), but I can not find button to run that wizard on parent model?
2011-11-30 15:28 <cedk> ndn_pit: I don't understand
2011-11-30 15:30 <ndn_pit> cedk: I have model1 that has field One2Many(model2), and I have report for model2, and I want to print that report from model1's form...
2011-11-30 15:31 <ndn_pit> cedk: I wrote wizard for model2 but it is not helped me...
2011-11-30 15:32 <cedk> ndn_pit: no you must write a wizard for model1
2011-11-30 15:33 <ndn_pit> ndn_pit: then it will print that report for all medel2 that is related to model1, how can i print report for selected record of model2?
2011-11-30 15:34 <cedk> ndn_pit: you must open in new tab the list of records of model2
2011-11-30 15:34 <cedk> ndn_pit: with a relate for example
2011-11-30 15:36 <ndn_pit> cedk: that is I what I feared... It's so inconvenient...
2011-11-30 15:37 <cedk> ndn_pit: you must understand that to run a report the records must be saved on the server-side but on a one2many widget it is not necessary the case
2011-11-30 15:38 <cedk> you can see this
2011-11-30 15:42 <ndn_pit> cedk: ok, thank you
2011-11-30 15:53 -!- ndn_pit(~ndn@ has left #tryton
2011-11-30 16:30 <jcm> hi, I'm blocked on my 2.2 server install: seems the server is not seen by my client, nothing happens in the log. Can I try to talk with the server in json by telnet?
2011-11-30 16:31 <jcm> where can I find some examples of this dialog?
2011-11-30 16:34 <cedk> jcm: I think it is IPv6 issue
2011-11-30 16:34 <cedk> jcm: could you look if your localhost (or whatever) resolve to the IPv6 address
2011-11-30 16:39 <jcm> i'm in ipv4 only here :/
2011-11-30 16:40 <cedk> jcm: are you sure?
2011-11-30 16:40 <cedk> jcm: also by default trytond listen only on localhost
2011-11-30 16:40 <jcm> I need to check my router, but quite sure
2011-11-30 16:42 <jcm> I have in conf jsonrpc = *:8000 in my trytond.conf
2011-11-30 16:42 <jcm> I double checked my routing to server, and it worked with 2.0 so I don't suspect it
2011-11-30 16:48 <cedk> jcm: it is an other port
2011-11-30 16:49 <jcm> trid without ssl, I get Error code 400 to my telnet { "method": "echo", "params": ["Hello JSON-RPC"], "id": 1}
2011-11-30 17:57 <jcm> cedk: why isn't the port 8000 ?
2011-11-30 17:58 <cedk> jcm: in 2.0 it was still 8070 and in 2.2 it is 8000
2011-11-30 17:59 <jcm> sure, my config has 8000 and I'm on 2.2
2011-11-30 18:01 <cedk> jcm: but is the firewall opened etc?
2011-11-30 18:06 <jcm> yes; telnet to tryton on port 8000 gives a html answer, strange for jsonrpc?
2011-11-30 18:24 <cedk> jcm: try: instead of *:8000
2011-11-30 19:08 <jcm> cedk: doesn't seem to be this. I have a problem with postgres ident that didn't exist in 2.0.
2011-11-30 19:09 <cedk> jcm: strange because there was no changes on this part
2011-11-30 19:09 <jcm> when the client tries to connect, I see a line in server log INFO:database:connect to "essai23"
2011-11-30 19:10 <jcm> but connection is always rejected, either as erroneous passwd, or with msg recommending to check postgres is alive on 5432
2011-11-30 19:11 <jcm> should I fill the conf field db_password if my postgres user is a unix user?
2011-11-30 19:11 <jcm> I can connect to psql on cli
2011-11-30 19:13 <cedk> jcm: normally no
2011-11-30 19:15 <jcm> cedk: why did you speak about ipv6 ? I can try to migrate my router to ipv6
2011-11-30 19:17 <cedk> jcm: it is because it is a come error
2011-11-30 19:17 <cedk> jcm: if the server has ipv6 support, it is preferred over ipv4
2011-11-30 19:20 <jcm> ok, I'll continue to explore... I cannot check modules ports on 2.2 before I have a running install. I have a copy on my laptop but have no mac client yet for 2.2.
2011-11-30 19:22 <cedk> jcm: I can check if you give me ssh access
2011-11-30 20:07 <cedk> got a problem with the new Wizard implementation
2011-11-30 20:08 <cedk> I use Pickles to store the session values but pickles doesn't work on buffer (which is used for Binary fields)
2011-11-30 20:09 <cedk> I should perhaps use json?
2011-11-30 20:21 <pokoli> hi all
2011-11-30 20:21 <pokoli> there is any unofficial tryton modules repository?
2011-11-30 20:22 <cedk> pokoli: not really, there is: and
2011-11-30 20:22 <cedk> pokoli: but at the TUL2011, some says that they don't want to use it
2011-11-30 20:24 <pokoli> cedk, you say that there are people that will publish (or not) their modules in a separated repo?
2011-11-30 20:25 <cedk> pokoli: some uses bitbucket and others github
2011-11-30 20:25 <cedk> pokoli: yes there is
2011-11-30 20:25 <pokoli> IMHO it's better to mantain a central repo
2011-11-30 20:25 <pokoli> with links in other repos if you want
2011-11-30 20:26 <cedk> pokoli: everybody is free to use what he wants
2011-11-30 20:26 <pokoli> but to got a place where all the modules got listed (at leasts)
2011-11-30 20:26 <cedk> pokoli: indeed a good practice is to make release and publish it on pypi under:
2011-11-30 20:26 <pokoli> cedk, will help to avoid to reivent the wheel
2011-11-30 20:28 <cedk> pokoli: also we don't want to have missunderstanding on what is part of Tryton and what is not
2011-11-30 20:30 <pokoli> i understand your point and i agree that a good practice is to publish in pypi
2011-11-30 20:30 <pokoli> but there are the oficial modules to, aren't they?
2011-11-30 20:31 <pokoli> and that would cause the missunderstaning you said
2011-11-30 20:31 <cedk> pokoli: no because there is a attribute for the publisher
2011-11-30 20:32 <pokoli> cedk: you mean author?
2011-11-30 20:34 <pokoli> cedk, i don't see the publisher
2011-11-30 20:35 <cedk> pokoli: yes author
2011-11-30 20:38 <pokoli> cedk, i supose that all the B2CK authored modules are the official ones, and the other are unofficial
2011-11-30 20:38 <pokoli> but i think that this is not easy for newcommers on tryton
2011-11-30 20:40 <cedk> pokoli: yes we must clean all this and set to tryton
2011-11-30 20:40 <pokoli> Thanks :)
2011-11-30 20:40 <pokoli> was only a comment indeed
2011-11-30 20:41 <cedk> pokoli: added to
2011-11-30 20:47 <pokoli> Thanks, hope it my coment will help
2011-11-30 22:40 <pokoli> cedk, how can a custom develop module become a oficial tryton module'
2011-11-30 22:40 <pokoli> ?
2011-11-30 22:46 <cedk> pokoli: submit it to review
2011-11-30 22:47 <cedk> pokoli: but it must be generic enough to be included
2011-11-30 22:49 <grasbauer> cedk: hi
2011-11-30 22:49 <grasbauer> cedk: you wrote price_list modules?
2011-11-30 22:51 <cedk> grasbauer: yes
2011-11-30 22:52 <pokoli> cedk, i'tm thinking in writing a project_gtd
2011-11-30 22:52 <pokoli> or better task_gtd
2011-11-30 22:53 <grasbauer> cedk: because I'm thinking about a button to generate price_list.lines with one click for all salable products. I don't kow if its to much - but adding product per product is hard for lazybones
2011-11-30 22:53 <pokoli> cedk: would be that generic enough¿
2011-11-30 22:53 <cedk> grasbauer: if you can write a method for that, you should be able to write a formula in the price with 1 line
2011-11-30 22:53 <cedk> pokoli: depends
2011-11-30 22:55 <grasbauer> cedk: good idea - like a default formula which are set on all products?
2011-11-30 22:56 <pokoli> depends on what?
2011-11-30 22:56 <pokoli> cedk, would be gratefully to have a longer answer than depends :)
2011-11-30 23:09 <cedk> grasbauer: yes and if you need more parameter you can extend it
2011-11-30 23:09 <cedk> pokoli: it will depend on the quality of the code, the genericity, the simplicity etc.
2011-11-30 23:15 <pokoli> cedk the method is to post it in the code review and if it fits it would be included, isn't it?
2011-11-30 23:16 <cedk> pokoli: yes but you can also start to talk about your design on the mailing list
2011-11-30 23:16 <cedk> pokoli: you will have more chances to have something generic
2011-11-30 23:21 <pokoli> cedk, i've just suscribed to the mailing list

Generated by 2.17.3 by Marius Gedminas - find it at!