IRC logs of #tryton for Wednesday, 2015-06-03

chat.freenode.net #tryton log beginning Wed Jun 3 00:00:01 CEST 2015
-!- cjbarnes18(~user@host86-176-5-13.range86-176.btcentralplus.com) has joined #tryton00:33
cjbarnes18evening all, I am trying to understand the operation of the sale-opportunity module in 3.6, but I keep getting an error.  Is there any end user documentation available?00:35
cjbarnes18the error I am seeing when I create a new lead is "You try to read records that don't exist anymore.00:42
cjbarnes18(Document type: sale.opportunity)"00:42
cjbarnes18just tried the same thing on 3.4 and it worked OK so I guess this could be a bug.01:38
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton02:08
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton02:27
-!- newzen(~newzen@190.72.149.133) has joined #tryton02:54
-!- newzen(~newzen@190.72.149.133) has joined #tryton03:20
-!- digitalsatori(~Thunderbi@125.7.119.155) has joined #tryton03:20
-!- smarro(~sebastian@190.105.93.196) has joined #tryton03:43
-!- mathsniper(7d1f21cd@gateway/web/freenode/ip.125.31.33.205) has joined #tryton04:03
-!- smarro(~sebastian@190.105.93.196) has joined #tryton04:18
-!- digitalsatori(~Thunderbi@125.7.119.155) has joined #tryton04:27
-!- digitalsatori1(~Thunderbi@125.7.119.155) has joined #tryton04:31
-!- yangoon(~mathiasb@p549F0FB4.dip0.t-ipconnect.de) has joined #tryton06:31
-!- frispete(~frispete@p54A90488.dip0.t-ipconnect.de) has joined #tryton06:40
-!- zeittunnel(~234234234@p5DD18317.dip0.t-ipconnect.de) has joined #tryton06:49
-!- meanmicio(~meanmicio@207.Red-83-52-110.dynamicIP.rima-tde.net) has joined #tryton06:54
-!- meanmicio(~meanmicio@fsf/member/meanmicio) has joined #tryton06:54
-!- yangoon1(~mathiasb@p549F07F4.dip0.t-ipconnect.de) has joined #tryton07:02
-!- pjstevns(~Thunderbi@2001:981:7170:1:d94b:f261:2476:19a9) has joined #tryton07:40
-!- Telesight(~anthony@4dafef36.ftth.telfortglasvezel.nl) has joined #tryton07:43
-!- zeittunnel(~234234234@p5DD19F3E.dip0.t-ipconnect.de) has joined #tryton07:44
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton07:54
-!- cjbarnes18(~user@host86-176-5-13.range86-176.btcentralplus.com) has joined #tryton08:34
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton09:03
-!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton09:23
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:56
-!- nicoe(~nicoe@87.215.31.146) has joined #tryton09:56
-!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton10:09
-!- hiaselhans(~Thunderbi@ydvlwsU-187-087.uibk.ac.at) has joined #tryton10:28
-!- hiaselhans(~Thunderbi@ydvlwsU-187-087.uibk.ac.at) has joined #tryton10:30
-!- sharoonthomas(~sharoonth@103.245.118.154) has joined #tryton10:39
sharoonthomasnicoe: are you a fan of pytest ?11:20
nicoesharoonthomas: I like it indeed.11:22
nicoesharoonthomas: why?11:22
sharoonthomasnicoe: trying to write tryton tests using pytest11:23
sharoonthomasnicoe: wanted to know if you had tried and if you have had success with it11:24
sharoonthomasnicoe: from what I have written so far, it feels nicer than the unittest API11:24
sharoonthomasnicoe: and the reason I asked you is because Prakash mentioned that he saw your post from a while ago on the py-test mailing list11:25
nicoesharoonthomas: I tried it, but it was difficult to implement what we're talking about in the pytest ML IIRC11:26
nicoesharoonthomas: moreover we already have tests working so it was more a toy project than anything else11:26
sharoonthomasnicoe: let me upload a gist of what we have done so far11:28
sharoonthomasnicoe: https://gist.github.com/sharoonthomas/efd49c88928572359c8411:28
nicoeYes that's the kind of stuff I have already written11:29
cedkbut we already have scenario tools11:30
nicoeBut what would be nice would be to define the stuffs in their own module and automatically discover them so that modules B depending of module A would have acces to the fixtures defined in B11:30
sharoonthomasnicoe: its seems it is possible. and its needed because most test code really are fixtures copied from an upstream module11:31
cedknicoe: I really don't want to debug tests before testing a new module11:31
nicoecedk: It the same work for doctests11:32
cedknicoe: don't understand11:32
nicoecedk: debugging for fixtures or for doctests is the same amount of work11:33
sharoonthomascedk: this does not replace scenario tools IMO. It's a cleaner way of writing the unittest.TestCase. However the fixtures avoid duplication of code to a great extent.11:33
cedknicoe: I doubt a lot11:34
cedksharoonthomas: if you need such thing for unittest then you are write scenario in your unittest11:35
nicoecedk: in fact I think doctest adds also the proteus layer that might introduce bugs11:35
cedknicoe: that tests the real usage11:36
nicoecedk: but I agree with you pytest are for scenarios11:36
sharoonthomascedk: you have tried to achieve the same thing in account module: https://github.com/tryton/account/blob/develop/tests/tools.py11:36
sharoonthomascedk: those really are fixtures11:36
cedksharoonthomas: don't care about the name11:38
cedkafter if you don't want to use that for your own stuffs, good for you11:40
-!- prakashpandey(~prakashpa@103.245.118.154) has joined #tryton11:48
-!- hiaselhans(~Thunderbi@ydvlwsU-187-087.uibk.ac.at) has joined #tryton13:01
-!- mariomop(~quassel@host97.186-125-103.telecom.net.ar) has joined #tryton13:03
cedkdoes anyone has a good way to store period of a year?13:22
cedkindeed it should be like a date but without the year13:25
nicoecedk: what is a period? Something like 1st July up to 30th of Sep13:29
nicoecedk: or just a date without the year13:29
cedknicoe: it is the same13:30
-!- udono(~udono@ip-178-202-238-79.hsi09.unitymediagroup.de) has joined #tryton13:30
nicoecedk: I don't see how it could be the same13:30
cedknicoe: a range is two values13:31
nicoecedk: OK, I don't call this "the same"13:32
nicoecedk: The only time I needed this I used two fields13:33
nicoecedk: But it's a so so solution13:33
cedkMySQL allows partial date13:38
-!- juanfe(~juanfe@190.85.115.49) has joined #tryton13:39
cedkIt seems there are no perfect solution, so I will go with 2 fields and a complex domain13:42
nicoefrom a pure storing point of view I found this SO question: http://stackoverflow.com/questions/8169452/how-to-store-year-month-in-database13:47
cedknicoe: yep but which year to use?13:49
cedkand how to display to the user13:49
nicoecedk: You don't care about the year but it must have a 29th of Feb13:51
nicoecedk: and to display either two function fields or a new widget13:51
cedknicoe: but I think the ui will not so good after all13:51
cedknicoe: you will have unrelated weeks diplayed13:52
cedkif at the end, it is about to have 2 fields (month/day) better to store them with 2 fields13:53
nicoecedk: yes the SO question just answer for a storing pov13:55
-!- digitalsatori(~Thunderbi@203.35.234.18) has joined #tryton14:15
-!- smarro(~sebastian@190.105.93.196) has joined #tryton14:22
-!- bvillasanti(~bvillasan@181.16.21.34) has joined #tryton14:33
-!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton14:34
-!- alimon(~alimon@134.134.139.74) has joined #tryton14:45
-!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton14:45
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton15:20
-!- smarro(~sebastian@190.105.93.196) has joined #tryton15:23
-!- Telesight(~anthony@4dafef36.ftth.telfortglasvezel.nl) has joined #tryton15:33
-!- smarro(~sebastian@190.105.93.196) has joined #tryton16:01
-!- newzen(~newzen@190.72.146.207) has joined #tryton16:02
-!- sharoonthomas(~sharoonth@103.245.118.154) has joined #tryton16:04
-!- kstenger(~karla@200.124.209.158) has joined #tryton16:10
-!- smarro(~sebastian@190.105.93.196) has joined #tryton16:38
-!- udono(~udono@ltea-047-067-126-098.pools.arcor-ip.net) has joined #tryton17:01
-!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton17:55
-!- alimon(~alimon@134.134.139.70) has joined #tryton18:11
-!- sharoonthomas(~sharoonth@122.177.83.79) has joined #tryton18:29
-!- pablovannini(~pablo@110-189-235-201.fibertel.com.ar) has joined #tryton18:41
-!- bvillasanti1(~bvillasan@181.16.21.34) has joined #tryton19:18
-!- frispete(~frispete@p54A90488.dip0.t-ipconnect.de) has joined #tryton19:35
-!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton19:40
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton19:42
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton19:44
-!- sunny_dealmeida(~quassel@203.76.185.164) has joined #tryton20:20
-!- smarro(~sebastian@190.105.93.196) has joined #tryton20:29
-!- smarro(~sebastian@190.105.93.196) has joined #tryton21:07
-!- pablovannini(~pablo@110-189-235-201.fibertel.com.ar) has joined #tryton21:25
-!- bvillasanti(~bvillasan@181.16.21.34) has joined #tryton21:55
-!- bvillasanti(~bvillasan@181.16.21.34) has joined #tryton21:57
-!- Telesight(~anthony@4dafef36.ftth.telfortglasvezel.nl) has joined #tryton22:03
-!- smarro(~sebastian@190.105.93.196) has joined #tryton23:13
-!- nineinchnick(~jwas@109.231.21.249) has joined #tryton23:14
-!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton23:20
-!- smarro(~sebastian@190.105.93.196) has joined #tryton23:32

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!