IRC logs of #tryton for Friday, 2016-07-01

chat.freenode.net #tryton log beginning Fri Jul 1 00:00:01 CEST 2016
-!- zmijunkie1(~Adium@i59F5EE70.versanet.de) has joined #tryton00:33
-!- JosDzGx(~Thunderbi@fixed-203-141-189-203-141-123.iusacell.net) has joined #tryton02:21
-!- udono(~udono@ip-37-201-245-214.hsi13.unitymediagroup.de) has joined #tryton03:36
-!- miknotauro(~miknotaur@187.207.59.241) has joined #tryton03:40
-!- frispete_(~frispete@p54A913A3.dip0.t-ipconnect.de) has joined #tryton05:21
-!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton06:52
-!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton08:11
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:32
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:34
-!- prayashm(~prayashm@14.139.207.163) has joined #tryton08:39
-!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton08:39
-!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton08:42
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton08:45
-!- zmijunkie(~Adium@b2b-78-94-52-226.unitymedia.biz) has joined #tryton08:48
-!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton09:00
prayashmHow should we do the decoding of encoded files other than utf-8 in javascript?09:42
prayashmI am searching for python string.decode() equivalent in javascript, but didn't get any09:46
prayashmPapaParse documentation says it supports parsing encoded files, provided the encoding we mention should be supported by FileReader API09:50
prayashmI was reading about FileReader API, and I think https://encoding.spec.whatwg.org/#concept-encoding-get these are the encoding supported by it09:51
prayashmhow should I proceed?09:51
-!- aasnan(~angel@48.red-83-45-194.dynamicip.rima-tde.net) has joined #tryton10:02
pokoliprayashm: for me you should ask the enconding on the import dialog, and pass the entered encoding to PapaParse10:02
pokoliprayashm: does Paparse have any parameter to specify the encoding?10:02
prayashmpokoli: Yes, there. And that is already being done.10:04
prayashmpokoli: currently the encoding field is a select tag similar to that in GTK client10:05
prayashmpokoli: do you suggest I make it a text field?10:05
prayashmI am passing the user chosen encoding into the config object of PapaParse10:05
pokoliprayashm: it's okey to have a select tag similar to the GTK client10:06
pokoliprayashm: so if you are pasing the encoding it's the PapaParse work to read it in the correct encoding10:06
prayashmpokoli: right, I want to know which options should I allow in the select tag10:09
prayashmpokoli: All the ones mentioned in GTK Client?10:10
pokoliprayashm: yes, if all are suported by PapaParse10:10
prayashmpokoli: PapaParse says the encoding passed should be supported by the FileReader API10:12
pokoliprayashm: so only the one suportted by FileReader API10:15
pokoliprayashm: I will expect that all the encoding are supported, but please check it :)10:16
prayashmYep, I read through MDN ... and reached this file (through the w3c specification) https://encoding.spec.whatwg.org/#concept-encoding-get10:18
prayashmpokoli: I am pretty sure these are supported by FileReader10:18
prayashmpokoli: how should I test, if I am going in right direction?10:19
pokoliprayashm: yes, this link is the valid list of supported encodings10:20
pokoliprayashm: you can generate a file in a different enconding than utf-8 and try to import it10:21
-!- yangoon_rm(~mathiasb@137.158.22.107) has joined #tryton10:25
-!- prayashm(~prayashm@14.139.207.163) has joined #tryton10:37
-!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton10:37
-!- Michale(67fecb7c@gateway/web/freenode/ip.103.254.203.124) has joined #tryton10:57
Michalehello, How can I edit birthday via JSON RPC?10:57
pokoliMichale: if birthday is a field on a model: yes, you can change it via JSON-RPC10:58
-!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton11:04
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton11:08
-!- JosDzG(~Thunderbi@fixed-203-141-189-203-141-123.iusacell.net) has joined #tryton12:42
-!- yangoon_rm(~mathiasb@137.158.22.107) has joined #tryton12:46
-!- mariomop(~quassel@181.92.6.48) has joined #tryton12:48
-!- Michale(caa0a538@gateway/web/freenode/ip.202.160.165.56) has joined #tryton12:51
-!- Michale(67fecb7c@gateway/web/freenode/ip.103.254.203.124) has joined #tryton12:59
MichaleHello, I am trying to edit birthday as here http://pastebin.com/aydU3VmC13:00
Michalebut getting error13:00
Michaleis this valid for JSON RPC?13:00
Michalecan anyone help me?13:02
pokoliMichale: no, the date is not correctly encoded. It misses the __class__ attribute to specify that is a Date13:03
pokoliMichale: see http://hg.tryton.org/sao/file/tip/src/rpc.js#l17713:03
-!- yangoon_rm1(~mathiasb@137.158.22.107) has joined #tryton13:06
Michalepokoli, thanks for your answer, I change like http://pastebin.com/gTicchET  but still not working13:09
pokoliMichale: its __class__ not _class13:10
Michalestill not working13:13
Michaleas here http://pastebin.com/BCPZtVfE13:14
pokoliMichale: and what's the error?13:14
Michalehttp://pastebin.com/BCPZtVfE13:15
Michalesorry13:15
Michale502 Bad Gateway13:15
pokoliMichale: that's a proxy error, not an error on the trytond server13:15
Michalebut I am sure that's because of parameter we passing!13:17
Michalehow to solve that?13:19
cedkdate params must be integers13:22
Michalecedk, thanks!13:24
-!- yangoon_rm(~mathiasb@137.158.22.107) has joined #tryton13:29
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton14:48
-!- yangoon_rm(~mathiasb@137.158.22.107) has joined #tryton15:11
-!- kstenger(~karla@r190-133-121-160.dialup.adsl.anteldata.net.uy) has joined #tryton15:20
-!- bvillasanti(~bvillasan@138.117.21.154) has joined #tryton15:26
-!- prayashm(~prayashm@45.251.36.7) has joined #tryton15:40
-!- prayashm(~prayashm@unaffiliated/prayashm) has joined #tryton15:40
-!- kstenger(~karla@r190-133-121-160.dialup.adsl.anteldata.net.uy) has joined #tryton15:45
-!- pelox(~rail@gusl/staff/risturiz) has joined #tryton15:47
-!- yangoon_rm1(~mathiasb@137.158.22.107) has joined #tryton16:09
-!- JosDzG(~Thunderbi@fixed-203-141-189-203-141-123.iusacell.net) has joined #tryton16:28
-!- bechamel(~user@91.177.172.51) has joined #tryton16:30
-!- yangoon_rm(~mathiasb@137.158.22.107) has joined #tryton16:33
-!- yangoon_rm(~mathiasb@137.158.22.107) has joined #tryton16:36
-!- JosDzG(~Thunderbi@fixed-203-141-189-203-141-123.iusacell.net) has joined #tryton16:38
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton17:03
-!- yangoon_rm(~mathiasb@137.158.22.107) has joined #tryton17:37
-!- yangoon_rm1(~mathiasb@137.158.22.107) has joined #tryton17:37
-!- yangoon_rm(~mathiasb@137.158.22.107) has joined #tryton17:40
-!- JosDzGx(~Thunderbi@fixed-203-141-189-203-141-123.iusacell.net) has joined #tryton17:42
-!- yangoon_rm1(~mathiasb@137.158.22.107) has joined #tryton17:55
-!- JosDzG(~Thunderbi@fixed-203-141-189-203-141-123.iusacell.net) has joined #tryton17:58
-!- frispete(~frispete@p54A913A3.dip0.t-ipconnect.de) has joined #tryton18:28
-!- kstenger(~karla@r190-133-121-160.dialup.adsl.anteldata.net.uy) has joined #tryton18:35
-!- JosDzGx(~Thunderbi@fixed-203-141-189-203-141-123.iusacell.net) has joined #tryton18:43
-!- zmijunkie(~Adium@i59F5EE70.versanet.de) has joined #tryton18:46
-!- miknotauro(~miknotaur@187.207.59.241) has joined #tryton18:51
-!- yangoon_rm(~mathiasb@137.158.22.107) has joined #tryton19:20
-!- JosDzG(~Thunderbi@fixed-203-141-189-203-141-123.iusacell.net) has joined #tryton19:36
-!- bvillasanti(~bvillasan@138.117.21.154) has joined #tryton20:28
-!- kstenger1(~karla@r186-48-241-199.dialup.adsl.anteldata.net.uy) has joined #tryton20:36
-!- yangoon_rm(~mathiasb@137.158.22.107) has joined #tryton20:45
-!- JosDzGx(~Thunderbi@fixed-203-141-189-203-141-123.iusacell.net) has joined #tryton22:02
-!- frispete(~frispete@p54A913A3.dip0.t-ipconnect.de) has joined #tryton22:35

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