IRC logs of #tryton for Saturday, 2013-11-23

chat.freenode.net #tryton log beginning Sat Nov 23 00:00:02 CET 2013
2013-11-23 12:54 <pobsteta> I try this https://dpaste.de/UVow. It don't work. An idee for pyson in suffix tree ?
2013-11-23 13:05 <yangoon1> pobsteta: not familiar with this, but I think it should be one statement with Or clauses
2013-11-23 15:41 <pokoli> cedk: ping
2013-11-23 15:42 <cedk> pokoli: pong
2013-11-23 15:44 <pokoli> cedk: I was thinking on applying the write change to copy, and IMHO the main problem is that default can be None
2013-11-23 15:44 <pokoli> cedk: so using *args makes no sense
2013-11-23 15:44 <pokoli> cedk: Maybe could we solve it be using a list of records and a list of defaults?
2013-11-23 15:45 <pokoli> so, for example: copy([[1,2], [3,4], [{'state': 'open'}, {'state': 'closed'}])
2013-11-23 15:45 <cedk> pokoli: don't like it because it will make to have a default per record
2013-11-23 15:46 <cedk> pokoli: that's an horrible API
2013-11-23 15:47 <cedk> pokoli: by the way, I don't think such change will provide any benefit
2013-11-23 15:47 <cedk> pokoli: because copy re-use the create method
2013-11-23 15:47 <pokoli> cedk: You can group all the create calls in one
2013-11-23 15:50 <pokoli> cedk: stock_split module: Imagine you want to split a move of quantity 40 into a 40 moves of quantity one, so that will be 40 call to create with same parameters
2013-11-23 15:50 <pokoli> cedk: maybe adding a new parameter two copy to genereate a number of copies will be useful
2013-11-23 15:53 <cedk> pokoli: still horrible API
2013-11-23 15:54 <cedk> pokoli: you can still just use create
2013-11-23 15:56 <pokoli> cedk: but to use create you should call the convert_data method defined on modelstorage.copy
2013-11-23 15:56 <cedk> pokoli: you do want you want
2013-11-23 15:57 <pokoli> cedk: not sure I'm understanding you now
2013-11-23 15:59 <cedk> pokoli: I just mean it is not necessary to create an copy API that allow anything because it is just an helper, you can still do what you want with create
2013-11-23 16:02 <pokoli> cedk: That's is a helper, to create a copy or n copies
2013-11-23 16:03 <pokoli> cedk: nevermind, I will post a message on the mailing list and follow the discusion there :)

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