IRC logs of #tryton for Friday, 2013-06-21

chat.freenode.net #tryton log beginning Fri Jun 21 00:00:02 CEST 2013
2013-06-21 10:31 <mrechte> Hello. What's make a ModelSQL defintion becomes a resident table (viz. in the DB) ?
2013-06-21 10:38 <cedk> mrechte: because it is ModelSQL
2013-06-21 10:47 <mrechte> cedk: thanks. But in this case why ProductQuantitiesByWarehouse model does not become a DB table ?
2013-06-21 10:48 <cedk> mrechte: where ?
2013-06-21 10:48 <mrechte> cedk: stock/product.py
2013-06-21 10:50 <cedk> mrechte: because it defines table_query
2013-06-21 10:50 <cedk> mrechte: http://doc.tryton.org/2.8/trytond/doc/ref/models/models.html?highlight=table_query#trytond.model.ModelSQL.table_query
2013-06-21 10:51 <mrechte> cedk: thanks a lot.
2013-06-21 12:51 <sharoonthomas> cedk: what is the best way to get access to the module graph of an installed database ? my intention is to look for files in installed modules paths
2013-06-21 12:52 <cedk> sharoonthomas: in modules/__init__.py there is a graph that can be printed
2013-06-21 12:52 <sharoonthomas> checking
2013-06-21 12:57 <cedk> sharoonthomas: by the way, what is the state of nereid ?
2013-06-21 13:01 <sharoonthomas> cedk: it has been migrated to 2.8
2013-06-21 13:02 <sharoonthomas> cedk: there are a few things which need to go in and we have started to work on it
2013-06-21 13:02 <sharoonthomas> cedk: https://github.com/openlabs/nereid/issues?state=open
2013-06-21 13:03 <sharoonthomas> cedk: we want to get it done before the next release
2013-06-21 13:05 <cedk> sharoonthomas: ok, I will try to work on it also
2013-06-21 13:05 <sharoonthomas> cedk: also the splitting into two modules made the tests go into one module (trytond-nereid). so nereid needs to get its set of tests separated
2013-06-21 13:06 <sharoonthomas> cedk: we discussed once about allowing more modules to be test modules like the bundled test module inside trytond
2013-06-21 13:08 <cedk> sharoonthomas: I think nereid should be one package
2013-06-21 13:17 <sharoonthomas> cedk: meaning ? tryton module required for nereid to work and the package ?
2013-06-21 13:19 <javivf> hi
2013-06-21 13:20 <javivf> i'm trying to import products with proteus without success, i dont know how work with product.template
2013-06-21 13:20 <javivf> is there some example about this ?
2013-06-21 13:28 <sharoonthomas> javivf: any code you have already written ?
2013-06-21 13:30 <javivf> http://pastebin.com/vp18F852
2013-06-21 13:31 <javivf> i'm trying to understand setup_product from http://hg.tryton.org/tryton-tools/file/1eaac9efd766/tryton_demo.py
2013-06-21 13:47 <javivf> well this works : http://pastebin.com/RPrFysbd
2013-06-21 18:18 <sisalp> hello, on a new installed server I get SSLError: [Errno 1] _ssl.c:499: error:1407609C:SSL routines:SSL23_GET_CLIENT_HELLO:http request
2013-06-21 18:19 <sisalp> when I set ssl_jsonrpc = True in conf file
2013-06-21 18:19 <sisalp> and I can connect when I set it to False
2013-06-21 18:20 <sisalp> where is my mistake ?
2013-06-21 18:25 <cedk> sisalp: I guess you did not clean your ~/.config/tryton/x.y/known_hosts
2013-06-21 18:28 <sisalp> cedk: can I delete it ?
2013-06-21 18:29 <cedk> sisalp: if you want
2013-06-21 18:30 <sisalp> cedk: excellent. how did you identify this point from the error message ?
2013-06-21 18:31 <cedk> sisalp: you just changed an SSL config into a non-SSL
2013-06-21 18:34 <cedk> sisalp: I think there is an issue to try to provide a better error message
2013-06-21 18:35 <sisalp> cedk: I see the host is identified in the line, so I can remove the line each time I start the service. does it matter ?
2013-06-21 18:36 <sisalp> soryy, mixing client and server, stupid
2013-06-21 18:36 <sisalp> sorry
2013-06-21 18:37 <sisalp> cedk: shouldn't the client adapt to the server whatever was done in the past ?
2013-06-21 18:38 <sisalp> cedk: would it create problem if we start the client twice ?
2013-06-21 19:17 <cedk> sisalp: no it should not because it could be the fact of a Man in the Middle
2013-06-21 19:19 <cedk> sisalp: for example, you used to connect to a SSL server
2013-06-21 19:20 <cedk> sisalp: and I succeed to hijack your connection and I put my own proxy server with an other SSL certificat or no SSL
2013-06-21 19:20 <cedk> sisalp: with the known_host mechanism this is detected
2013-06-21 19:21 <cedk> sisalp: if the client just ignores the change then there is no protection
2013-06-21 20:06 -!- MartinGuzman(~MartinGuz@190.148.60.66) has left #tryton
2013-06-21 20:29 <MartinGuzman> Hi. I'm trying to replace the stock.shipment.in create method... I tried this: http://pastebin.com/WsNSM8Pe, what I'm doing wrong? This create method is being called, but the old one is being called too..
2013-06-21 20:32 <cedk> MartinGuzman: you call super
2013-06-21 20:32 <cedk> MartinGuzman: which is good but then upper method will be called
2013-06-21 20:32 <cedk> MartinGuzman: any way, it is always good to run every pieces of code
2013-06-21 20:36 <MartinGuzman> cedk: in this case, what should I do to "skip" the upper method?
2013-06-21 20:36 <cedk> MartinGuzman: it is almost impossible to know what you will skip
2013-06-21 20:41 <cedk> MartinGuzman: also I think there is a flaw in your design
2013-06-21 20:42 <cedk> MartinGuzman: what will happen if after the creation the field "is_donation" is changed ?
2013-06-21 20:44 <MartinGuzman> cedk: sorry... that was my mistake.. the "is_donation" should be readonly and I create a new action window with domain=('is_donation','=',True)
2013-06-21 20:53 <MartinGuzman> http://pastebin.com/EZYFg1dL
2013-06-21 21:00 <cedk> MartinGuzman: I guess it is a mistake in base module to force such value
2013-06-21 23:14 <cedk> MartinGuzman: created the issue: https://bugs.tryton.org/issue3268
2013-06-21 23:33 <MartinGuzman> cedk, :-D!

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!