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

chat.freenode.net #tryton log beginning Fri Jul 10 00:00:02 CEST 2015
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:44
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:21
-!- digitalsatori(~Thunderbi@114.92.196.106) has joined #tryton02:25
-!- smarro(~sebastian@190.105.93.196) has joined #tryton02:38
-!- digitalsatori(~Thunderbi@116.234.234.14) has joined #tryton03:17
-!- digitalsatori1(~Thunderbi@116.234.234.14) has joined #tryton03:27
-!- digitalsatori(~Thunderbi@116.234.234.14) has joined #tryton03:58
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton05:06
-!- frispete_(~frispete@p54A90268.dip0.t-ipconnect.de) has joined #tryton06:40
-!- sunny_dealmeida(~quassel@203.76.189.239) has joined #tryton06:53
-!- yangoon(~mathiasb@p549F12C2.dip0.t-ipconnect.de) has joined #tryton07:02
-!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton07:15
-!- sunny_dealmeida(~quassel@101.0.48.153) has joined #tryton07:26
-!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton07:42
-!- digitalsatori(~Thunderbi@116.234.234.14) has joined #tryton07:58
-!- VaticanCameos(~pritishc@182.68.172.234) has joined #tryton08:08
-!- udono(~udono@ip-178-202-238-79.hsi09.unitymediagroup.de) has joined #tryton08:47
-!- nicoe(~nicoe@2a02:a03f:3089:9d00:ee55:f9ff:fe7b:f7ac) has joined #tryton08:52
-!- Jitesh_Nair(~jitesh@unaffiliated/jitesh-nair/x-6738125) has joined #tryton09:08
Jitesh_Nairwhen 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 touched09:14
Jitesh_Nairhttp://dpaste.com/0YV2S9S09:15
Jitesh_Nairwhen i checked the get_invoice line in the purchase.line class, we dint assign a company to the invoice_line09:16
-!- Timitos(~kpreisler@2001:4c50:34c:9d00:ae7b:a1ff:feaf:55f0) has joined #tryton09:17
Jitesh_Nairand company seems required in the account.invoice.line class instance09:21
pokoliJitesh_Nair: you have to pass the context to purchase.process09:24
pokoliJitesh_Nair: you can use the click method which is simplier09:24
pokolipurchase.click('process')09:24
Jitesh_Nairbut click exists only for proteus right?09:25
pokoliJitesh_Nair: yes, and it's used on instances09:25
Jitesh_Nairso the other method, is there any example of the other method. iam trying to do it without proteus09:26
pokoliJitesh_Nair: what other method?09:28
Jitesh_Nairpokoli, without the click, i know it will be tough but i am trying to do it without the proteus09:29
pokoliJitesh_Nair: from the server code? Pool().get('purchase.purchase).process([purchase])09:29
Jitesh_Nairohh09:30
Jitesh_Nairlemme try that09:30
Jitesh_Nairpokoli, unfortunately i got the same error...09:34
pokoliJitesh_Nair: sounds strange, but how you execute your code without proteus?09:35
Jitesh_Nairlemme show u09:35
Jitesh_Nairhttp://dpaste.com/2PJPD8B09:36
Jitesh_Nairpokoli, code09:37
Jitesh_Nairand do we use a combination of proteus and transactions in the tryton client?09:37
Jitesh_Nairi thought everything was done in transactions09:37
pokoliJitesh_Nair: you have to correctly set context09:42
Jitesh_Nairoh i dont know about that....do we have an example case? and when do we realize we need a context for certain cases?09:43
pokoliJitesh_Nair: you always need a context09:49
pokoliJitesh_Nair: don't know abount any example using transactions09:50
Jitesh_Nairohh 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?09:51
Jitesh_Nairproteus made things easy really easy but after using transactions things scaled up to a lot faster execution09:52
Jitesh_Nairso i thought of using transactions only and thought tryton client may be using only transactions09:52
Jitesh_Nairdoes the tryton client uses proteus?09:53
pokoliJitesh_Nair: because other code don't use code that depends on context09:55
pokoliJitesh_Nair: no, client uses jsonrpc to talk to the server, and uses context09:56
Jitesh_Nairpokoli,  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.09:57
Jitesh_Nairpokoli i assigned transaction.context=proteus.config.get_config().context10:06
Jitesh_Nairpokoli, it worked10:06
pokoliJitesh_Nair: don't understand why you mix transactions and proteus10:07
-!- rpit(~rpit@2a02:908:e670:6ac0:5cb4:af90:8275:fb92) has joined #tryton10:08
Jitesh_Nairit 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...10:09
Jitesh_Nairpokoli, i just wonder if you have not replied...i would have still hitting the walls :D10:10
Jitesh_Nairthanks man10:10
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton10:22
-!- Jitesh_Nair(~jitesh@116.68.98.76) has joined #tryton10:34
-!- Telesight(~anthony@4dafe0c0.ftth.telfortglasvezel.nl) has joined #tryton10:39
-!- Jitesh_Nair(~jitesh@unaffiliated/jitesh-nair/x-6738125) has joined #tryton11:16
-!- digitalsatori1(~Thunderbi@180.158.130.31) has joined #tryton11:19
-!- smarro(~sebastian@190.105.93.196) has joined #tryton12:23
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton12:44
-!- mariomop(~quassel@host132.186-109-100.telecom.net.ar) has joined #tryton12:57
-!- Telesight(~anthony@4dafe0c0.ftth.telfortglasvezel.nl) has joined #tryton13:32
-!- kstenger(~karla@200.124.209.158) has joined #tryton13:41
-!- smarro(~sebastian@190.105.93.196) has joined #tryton13:45
-!- nirakara(~nikhil@105.227.25.58) has joined #tryton14:00
nirakarahas anyone tried to integrate django and tryton14:01
-!- FvD(~Thunderbi@ip95-153-64-186.ct.co.cr) has joined #tryton14:09
Pilounirakara: an old doc: https://code.google.com/p/tryton/wiki/TrytonDjango14:09
-!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton14:19
-!- nirakara(~nikhil@41.177.132.80) has joined #tryton14:25
-!- nirakara(~nikhil@41.177.132.80) has joined #tryton14:26
-!- Telesight(~anthony@4dafe0c0.ftth.telfortglasvezel.nl) has joined #tryton14:29
-!- jcnorman(~jcnorman@24-197-138-90.dhcp.spbg.sc.charter.com) has joined #tryton15:18
-!- Timitos(~kpreisler@77.47.6.170.dynamic.cablesurf.de) has joined #tryton15:39
-!- Telesight(~anthony@4dafe0c0.ftth.telfortglasvezel.nl) has joined #tryton15:43
-!- bvillasanti(~bvillasan@181.16.21.34) has joined #tryton15:44
-!- VaticanCameos(~pritishc@182.68.172.234) has joined #tryton16:03
-!- nirakara(~nikhil@105-237-165-17.access.mtnbusiness.co.za) has joined #tryton18:13
-!- nirakara(~nikhil@105-237-129-117.access.mtnbusiness.co.za) has joined #tryton18:18
-!- jcnorman(~jcnorman@24-197-138-90.dhcp.spbg.sc.charter.com) has joined #tryton18:19
-!- nikhil__(~nikhil@105-237-129-80.access.mtnbusiness.co.za) has joined #tryton18:27
rpitI 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?18:42
-!- nikhil___(~nikhil@105-237-168-42.access.mtnbusiness.co.za) has joined #tryton18:43
-!- jcnorman(~jcnorman@24-197-138-90.dhcp.spbg.sc.charter.com) has joined #tryton18:51
-!- michael-kohlhaas(~michael-k@unaffiliated/michael-kohlhaas) has joined #tryton18:53
-!- Telesight(~anthony@4dafe0c0.ftth.telfortglasvezel.nl) has joined #tryton18:57
Pilourpit: http://comments.gmane.org/gmane.comp.python.tryton.devel/815218:57
rpitPilou: Thank you, it worked19:03
-!- sunny_dealmeida(~quassel@101.0.48.153) has joined #tryton20:06
-!- mariomop(~quassel@host232.186-125-105.telecom.net.ar) has joined #tryton21:14
-!- juanfe(~juanfe@190.85.115.49) has joined #tryton21:16
-!- alimon(alimon@nat/intel/x-xaswxohakpzgfhwk) has joined #tryton21:18
-!- juanfe_(~juanfe@190.85.115.49) has joined #tryton21:32
-!- juanfe(~juanfe@190.85.115.49) has joined #tryton21:52
-!- bechamel1(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton21:56
-!- alimon(~alimon@134.134.139.70) has joined #tryton22:03
-!- Telesight(~anthony@4dafe0c0.ftth.telfortglasvezel.nl) has joined #tryton22:57
-!- alimon(~alimon@134.134.139.70) has joined #tryton23:03
-!- bvillasanti(~bvillasan@181.16.21.34) has joined #tryton23:28

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