IRC logs of #tryton for Friday, 2015-07-10

chat.freenode.net #tryton log beginning Fri Jul 10 00:00:02 CEST 2015
2015-07-10 00:44 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-07-10 01:21 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-07-10 02:25 -!- digitalsatori(~Thunderbi@114.92.196.106) has joined #tryton
2015-07-10 02:38 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-07-10 03:17 -!- digitalsatori(~Thunderbi@116.234.234.14) has joined #tryton
2015-07-10 03:27 -!- digitalsatori1(~Thunderbi@116.234.234.14) has joined #tryton
2015-07-10 03:58 -!- digitalsatori(~Thunderbi@116.234.234.14) has joined #tryton
2015-07-10 05:06 -!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton
2015-07-10 06:40 -!- frispete_(~frispete@p54A90268.dip0.t-ipconnect.de) has joined #tryton
2015-07-10 06:53 -!- sunny_dealmeida(~quassel@203.76.189.239) has joined #tryton
2015-07-10 07:02 -!- yangoon(~mathiasb@p549F12C2.dip0.t-ipconnect.de) has joined #tryton
2015-07-10 07:15 -!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton
2015-07-10 07:26 -!- sunny_dealmeida(~quassel@101.0.48.153) has joined #tryton
2015-07-10 07:42 -!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton
2015-07-10 07:58 -!- digitalsatori(~Thunderbi@116.234.234.14) has joined #tryton
2015-07-10 08:08 -!- VaticanCameos(~pritishc@182.68.172.234) has joined #tryton
2015-07-10 08:47 -!- udono(~udono@ip-178-202-238-79.hsi09.unitymediagroup.de) has joined #tryton
2015-07-10 08:52 -!- nicoe(~nicoe@2a02:a03f:3089:9d00:ee55:f9ff:fe7b:f7ac) has joined #tryton
2015-07-10 09:08 -!- Jitesh_Nair(~jitesh@unaffiliated/jitesh-nair/x-6738125) has joined #tryton
2015-07-10 09:14 <Jitesh_Nair> when iam trying to use the process function of a purchase.purchase an iam passing a properly saved purchase instance but iam getting error in the Invoice line where i havent touched
2015-07-10 09:15 <Jitesh_Nair> http://dpaste.com/0YV2S9S
2015-07-10 09:16 <Jitesh_Nair> when i checked the get_invoice line in the purchase.line class, we dint assign a company to the invoice_line
2015-07-10 09:17 -!- Timitos(~kpreisler@2001:4c50:34c:9d00:ae7b:a1ff:feaf:55f0) has joined #tryton
2015-07-10 09:21 <Jitesh_Nair> and company seems required in the account.invoice.line class instance
2015-07-10 09:24 <pokoli> Jitesh_Nair: you have to pass the context to purchase.process
2015-07-10 09:24 <pokoli> Jitesh_Nair: you can use the click method which is simplier
2015-07-10 09:24 <pokoli> purchase.click('process')
2015-07-10 09:25 <Jitesh_Nair> but click exists only for proteus right?
2015-07-10 09:25 <pokoli> Jitesh_Nair: yes, and it's used on instances
2015-07-10 09:26 <Jitesh_Nair> so the other method, is there any example of the other method. iam trying to do it without proteus
2015-07-10 09:28 <pokoli> Jitesh_Nair: what other method?
2015-07-10 09:29 <Jitesh_Nair> pokoli, without the click, i know it will be tough but i am trying to do it without the proteus
2015-07-10 09:29 <pokoli> Jitesh_Nair: from the server code? Pool().get('purchase.purchase).process([purchase])
2015-07-10 09:30 <Jitesh_Nair> ohh
2015-07-10 09:30 <Jitesh_Nair> lemme try that
2015-07-10 09:34 <Jitesh_Nair> pokoli, unfortunately i got the same error...
2015-07-10 09:35 <pokoli> Jitesh_Nair: sounds strange, but how you execute your code without proteus?
2015-07-10 09:35 <Jitesh_Nair> lemme show u
2015-07-10 09:36 <Jitesh_Nair> http://dpaste.com/2PJPD8B
2015-07-10 09:37 <Jitesh_Nair> pokoli, code
2015-07-10 09:37 <Jitesh_Nair> and do we use a combination of proteus and transactions in the tryton client?
2015-07-10 09:37 <Jitesh_Nair> i thought everything was done in transactions
2015-07-10 09:42 <pokoli> Jitesh_Nair: you have to correctly set context
2015-07-10 09:43 <Jitesh_Nair> oh i dont know about that....do we have an example case? and when do we realize we need a context for certain cases?
2015-07-10 09:49 <pokoli> Jitesh_Nair: you always need a context
2015-07-10 09:50 <pokoli> Jitesh_Nair: don't know abount any example using transactions
2015-07-10 09:51 <Jitesh_Nair> ohh k but i was just following the same code through all other part of my code and there this did work...i dont remember passing any context.... how to pass a context with the transactions?
2015-07-10 09:52 <Jitesh_Nair> proteus made things easy really easy but after using transactions things scaled up to a lot faster execution
2015-07-10 09:52 <Jitesh_Nair> so i thought of using transactions only and thought tryton client may be using only transactions
2015-07-10 09:53 <Jitesh_Nair> does the tryton client uses proteus?
2015-07-10 09:55 <pokoli> Jitesh_Nair: because other code don't use code that depends on context
2015-07-10 09:56 <pokoli> Jitesh_Nair: no, client uses jsonrpc to talk to the server, and uses context
2015-07-10 09:57 <Jitesh_Nair> pokoli, thats why i asked how do we realize we need context for this particular transaction, but then I do understand context is very important and required everywhere.
2015-07-10 10:06 <Jitesh_Nair> pokoli i assigned transaction.context=proteus.config.get_config().context
2015-07-10 10:06 <Jitesh_Nair> pokoli, it worked
2015-07-10 10:07 <pokoli> Jitesh_Nair: don't understand why you mix transactions and proteus
2015-07-10 10:08 -!- rpit(~rpit@2a02:908:e670:6ac0:5cb4:af90:8275:fb92) has joined #tryton
2015-07-10 10:09 <Jitesh_Nair> it was just for the time being context is a dictionary(i realized it late ). I will be creating a context with transaction and passing it to the context soon,that was just to inform you my problem got solved when i passed a context to the transaction in the with block...
2015-07-10 10:10 <Jitesh_Nair> pokoli, i just wonder if you have not replied...i would have still hitting the walls :D
2015-07-10 10:10 <Jitesh_Nair> thanks man
2015-07-10 10:22 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-07-10 10:34 -!- Jitesh_Nair(~jitesh@116.68.98.76) has joined #tryton
2015-07-10 10:39 -!- Telesight(~anthony@4dafe0c0.ftth.telfortglasvezel.nl) has joined #tryton
2015-07-10 11:16 -!- Jitesh_Nair(~jitesh@unaffiliated/jitesh-nair/x-6738125) has joined #tryton
2015-07-10 11:19 -!- digitalsatori1(~Thunderbi@180.158.130.31) has joined #tryton
2015-07-10 12:23 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-07-10 12:44 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-07-10 12:57 -!- mariomop(~quassel@host132.186-109-100.telecom.net.ar) has joined #tryton
2015-07-10 13:32 -!- Telesight(~anthony@4dafe0c0.ftth.telfortglasvezel.nl) has joined #tryton
2015-07-10 13:41 -!- kstenger(~karla@200.124.209.158) has joined #tryton
2015-07-10 13:45 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-07-10 14:00 -!- nirakara(~nikhil@105.227.25.58) has joined #tryton
2015-07-10 14:01 <nirakara> has anyone tried to integrate django and tryton
2015-07-10 14:09 -!- FvD(~Thunderbi@ip95-153-64-186.ct.co.cr) has joined #tryton
2015-07-10 14:09 <Pilou> nirakara: an old doc: https://code.google.com/p/tryton/wiki/TrytonDjango
2015-07-10 14:19 -!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton
2015-07-10 14:25 -!- nirakara(~nikhil@41.177.132.80) has joined #tryton
2015-07-10 14:26 -!- nirakara(~nikhil@41.177.132.80) has joined #tryton
2015-07-10 14:29 -!- Telesight(~anthony@4dafe0c0.ftth.telfortglasvezel.nl) has joined #tryton
2015-07-10 15:18 -!- jcnorman(~jcnorman@24-197-138-90.dhcp.spbg.sc.charter.com) has joined #tryton
2015-07-10 15:39 -!- Timitos(~kpreisler@77.47.6.170.dynamic.cablesurf.de) has joined #tryton
2015-07-10 15:43 -!- Telesight(~anthony@4dafe0c0.ftth.telfortglasvezel.nl) has joined #tryton
2015-07-10 15:44 -!- bvillasanti(~bvillasan@181.16.21.34) has joined #tryton
2015-07-10 16:03 -!- VaticanCameos(~pritishc@182.68.172.234) has joined #tryton
2015-07-10 18:13 -!- nirakara(~nikhil@105-237-165-17.access.mtnbusiness.co.za) has joined #tryton
2015-07-10 18:18 -!- nirakara(~nikhil@105-237-129-117.access.mtnbusiness.co.za) has joined #tryton
2015-07-10 18:19 -!- jcnorman(~jcnorman@24-197-138-90.dhcp.spbg.sc.charter.com) has joined #tryton
2015-07-10 18:27 -!- nikhil__(~nikhil@105-237-129-80.access.mtnbusiness.co.za) has joined #tryton
2015-07-10 18:42 <rpit> I try uploading a patch with hgreview. Now I get an error "HTTP Error 301: Moved Permanently" on server address "https://codereview.tryton.org". Any hints?
2015-07-10 18:43 -!- nikhil___(~nikhil@105-237-168-42.access.mtnbusiness.co.za) has joined #tryton
2015-07-10 18:51 -!- jcnorman(~jcnorman@24-197-138-90.dhcp.spbg.sc.charter.com) has joined #tryton
2015-07-10 18:53 -!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton
2015-07-10 18:57 -!- Telesight(~anthony@4dafe0c0.ftth.telfortglasvezel.nl) has joined #tryton
2015-07-10 18:57 <Pilou> rpit: http://comments.gmane.org/gmane.comp.python.tryton.devel/8152
2015-07-10 19:03 <rpit> Pilou: Thank you, it worked
2015-07-10 20:06 -!- sunny_dealmeida(~quassel@101.0.48.153) has joined #tryton
2015-07-10 21:14 -!- mariomop(~quassel@host232.186-125-105.telecom.net.ar) has joined #tryton
2015-07-10 21:16 -!- juanfe(~juanfe@190.85.115.49) has joined #tryton
2015-07-10 21:18 -!- alimon(alimon@nat/intel/x-xaswxohakpzgfhwk) has joined #tryton
2015-07-10 21:32 -!- juanfe_(~juanfe@190.85.115.49) has joined #tryton
2015-07-10 21:52 -!- juanfe(~juanfe@190.85.115.49) has joined #tryton
2015-07-10 21:56 -!- bechamel1(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton
2015-07-10 22:03 -!- alimon(~alimon@134.134.139.70) has joined #tryton
2015-07-10 22:57 -!- Telesight(~anthony@4dafe0c0.ftth.telfortglasvezel.nl) has joined #tryton
2015-07-10 23:03 -!- alimon(~alimon@134.134.139.70) has joined #tryton
2015-07-10 23:28 -!- bvillasanti(~bvillasan@181.16.21.34) has joined #tryton

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