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