IRC logs of #tryton for Wednesday, 2019-04-17

chat.freenode.net #tryton log beginning Wed Apr 17 00:00:01 CEST 2019
-!- CarlosCHF(beea2932@gateway/web/freenode/ip.190.234.41.50) has joined #tryton22:06
CarlosCHFhi communitty22:06
CarlosCHFi have a question22:07
CarlosCHFwhen i am posted a invoice, the system alert with "int() argument must be a string , a byte-like object or number not TranslateModel"22:07
-!- udono(~udono@000-138-067-156.ip-addr.inexio.net) has joined #tryton22:44
-!- csotelo(~csotelo@190.234.41.50) has joined #tryton23:33
-!- yangoon(~mathiasb@i59F4D298.versanet.de) has joined #tryton02:23
-!- kapil____(uid36151@gateway/web/irccloud.com/x-kwvzxneecyeqjggs) has joined #tryton05:54
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton05:59
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton06:49
-!- rpit(~rpit@p200300C88F0A6700F0BEFC50CEB0A731.dip0.t-ipconnect.de) has joined #tryton07:28
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton07:58
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton08:56
-!- rpit(~rpit@p4FFB77B3.dip0.t-ipconnect.de) has joined #tryton10:08
-!- mariomop(~quassel@host68.201-253-198.telecom.net.ar) has joined #tryton11:13
-!- notizblock(~notizbloc@nblock.org) has joined #tryton12:38
notizblockis there some example code available on how to upload attachments via proteus?12:39
pokolinotizblock: IIRC binary fields are encoded using base64 on xml-rpc12:45
notizblockpokoli: I'm able to create an attachment, but only if its empty12:47
notizblockI tried to set `attachment.data to `b"value"` or to `xmlrpc.client.Binary(b"value")` but none of them work12:51
pokolinotizblock: could you upload the error message to a pastebin?13:07
notizblockpokoli: https://vim.cx/?c01ab3968d1ffc63#IMY2fEMhDpOq5fysvaUHIKzWnFzcVPd6BWsfGw/Nf2o=13:12
notizblockthis happens on the server running with the --verbose flag13:13
notizblockOn the client side, I'm doing essentially https://vim.cx/?7f1a7382f993466b#dAq3O/BQHcQElz28+e6PmOdHqvfwN173cvf+QuUiOVA=13:14
notizblockthe server receives a xmlrpc.client.Binary object, but this might not be passed directly to hashlib.md5()13:17
notizblockit seems to work as soon as I use the Binary object's data attribute, but I suspect I'm using proteus the wrong way13:20
notizblockbasically adding `data = data.data` as the first line FileStore.set()13:22
notizblockyep, this line breaks the Tryton GTK client13:25
pokolinotizblock: are you using proteus over xml-rpc or over a local trytond?13:46
pokolinotizblock: if you are using a local tryton you should pass a buffer object13:47
pokolinotizblock: one example of proteus reading a file object: http://hg.tryton.org/modules/account_statement_aeb43/file/252fa5d54f56/tests/scenario_account_statement_aeb43.rst#l8413:47
pokolinotizblock: in your case you should probably use io.StringIO('attachment')13:48
notizblockpokoli: xml-rpc13:50
notizblockusing io.StringIO triggers  `assert isinstance(value, (bytes, bytearray)) or value is None` on the client side13:51
cedknotizblock: it is probably fixed with https://hg.tryton.org/proteus/rev/ae977ce9155d14:00
notizblockcedk: does not seem to be the case (installed 5.0 from the proteus hg repo)14:08
cedknotizblock: it needs also https://hg.tryton.org/trytond/rev/2f225ae15c1914:09
-!- kapil____(uid36151@gateway/web/irccloud.com/x-mpnleopnihlcllgv) has joined #tryton14:11
notizblockcedk: it works with this patch; thx. I'll wait for the patch release of trytond and proteus14:26
cedknotizblock: I do not think it will be backported14:31
cedknotizblock: but I think a new issue should be raised for <=5.0 to always use _end_base64 even if bytes == str14:34
-!- smorillo(5ef87bf4@gateway/web/cgi-irc/kiwiirc.com/ip.94.248.123.244) has joined #tryton14:59
-!- gcells(gcells@ny1.hashbang.sh) has joined #tryton16:01
-!- ajain(ajain@sf1.hashbang.sh) has joined #tryton16:12
-!- csotelo(~csotelo@190.234.41.50) has joined #tryton16:21
-!- gcells(gcells@ny1.hashbang.sh) has joined #tryton16:26
-!- gcells(gcells@ny1.hashbang.sh) has joined #tryton17:06
-!- gcells(gcells@ny1.hashbang.sh) has left #tryton17:08
-!- gcells(gcells@ny1.hashbang.sh) has joined #tryton17:13
-!- gcells(gcells@ny1.hashbang.sh) has left #tryton17:13
-!- gcells1(gcells@ny1.hashbang.sh) has joined #tryton17:16
-!- ajain(ajain@unaffiliated/ajain) has joined #tryton17:31
-!- gcells(gcells@ny1.hashbang.sh) has joined #tryton17:42
-!- gcells(gcells@unaffiliated/gcells) has joined #tryton17:47
-!- gcells(gcells@ny1.hashbang.sh) has joined #tryton18:11
-!- gcells(gcells@unaffiliated/gcells) has joined #tryton18:13
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton20:00
-!- csotelo(~csotelo@190.234.41.50) has joined #tryton21:42
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton21:44

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