IRC logs of #tryton for Wednesday, 2019-04-17
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 #tryton | 22:06 | |
| CarlosCHF | hi communitty | 22:06 |
|---|---|---|
| CarlosCHF | i have a question | 22:07 |
| CarlosCHF | when 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 #tryton | 22:44 | |
| -!- csotelo(~csotelo@190.234.41.50) has joined #tryton | 23:33 | |
| -!- yangoon(~mathiasb@i59F4D298.versanet.de) has joined #tryton | 02:23 | |
| -!- kapil____(uid36151@gateway/web/irccloud.com/x-kwvzxneecyeqjggs) has joined #tryton | 05:54 | |
| -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | 05:59 | |
| -!- mrichez(~Maxime@mail.saluc.com) has joined #tryton | 06:49 | |
| -!- rpit(~rpit@p200300C88F0A6700F0BEFC50CEB0A731.dip0.t-ipconnect.de) has joined #tryton | 07:28 | |
| -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 07:58 | |
| -!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton | 08:56 | |
| -!- rpit(~rpit@p4FFB77B3.dip0.t-ipconnect.de) has joined #tryton | 10:08 | |
| -!- mariomop(~quassel@host68.201-253-198.telecom.net.ar) has joined #tryton | 11:13 | |
| -!- notizblock(~notizbloc@nblock.org) has joined #tryton | 12:38 | |
| notizblock | is there some example code available on how to upload attachments via proteus? | 12:39 |
| pokoli | notizblock: IIRC binary fields are encoded using base64 on xml-rpc | 12:45 |
| notizblock | pokoli: I'm able to create an attachment, but only if its empty | 12:47 |
| notizblock | I tried to set `attachment.data to `b"value"` or to `xmlrpc.client.Binary(b"value")` but none of them work | 12:51 |
| pokoli | notizblock: could you upload the error message to a pastebin? | 13:07 |
| notizblock | pokoli: https://vim.cx/?c01ab3968d1ffc63#IMY2fEMhDpOq5fysvaUHIKzWnFzcVPd6BWsfGw/Nf2o= | 13:12 |
| notizblock | this happens on the server running with the --verbose flag | 13:13 |
| notizblock | On the client side, I'm doing essentially https://vim.cx/?7f1a7382f993466b#dAq3O/BQHcQElz28+e6PmOdHqvfwN173cvf+QuUiOVA= | 13:14 |
| notizblock | the server receives a xmlrpc.client.Binary object, but this might not be passed directly to hashlib.md5() | 13:17 |
| notizblock | it seems to work as soon as I use the Binary object's data attribute, but I suspect I'm using proteus the wrong way | 13:20 |
| notizblock | basically adding `data = data.data` as the first line FileStore.set() | 13:22 |
| notizblock | yep, this line breaks the Tryton GTK client | 13:25 |
| pokoli | notizblock: are you using proteus over xml-rpc or over a local trytond? | 13:46 |
| pokoli | notizblock: if you are using a local tryton you should pass a buffer object | 13:47 |
| pokoli | notizblock: one example of proteus reading a file object: http://hg.tryton.org/modules/account_statement_aeb43/file/252fa5d54f56/tests/scenario_account_statement_aeb43.rst#l84 | 13:47 |
| pokoli | notizblock: in your case you should probably use io.StringIO('attachment') | 13:48 |
| notizblock | pokoli: xml-rpc | 13:50 |
| notizblock | using io.StringIO triggers `assert isinstance(value, (bytes, bytearray)) or value is None` on the client side | 13:51 |
| cedk | notizblock: it is probably fixed with https://hg.tryton.org/proteus/rev/ae977ce9155d | 14:00 |
| notizblock | cedk: does not seem to be the case (installed 5.0 from the proteus hg repo) | 14:08 |
| cedk | notizblock: it needs also https://hg.tryton.org/trytond/rev/2f225ae15c19 | 14:09 |
| -!- kapil____(uid36151@gateway/web/irccloud.com/x-mpnleopnihlcllgv) has joined #tryton | 14:11 | |
| notizblock | cedk: it works with this patch; thx. I'll wait for the patch release of trytond and proteus | 14:26 |
| cedk | notizblock: I do not think it will be backported | 14:31 |
| cedk | notizblock: but I think a new issue should be raised for <=5.0 to always use _end_base64 even if bytes == str | 14:34 |
| -!- smorillo(5ef87bf4@gateway/web/cgi-irc/kiwiirc.com/ip.94.248.123.244) has joined #tryton | 14:59 | |
| -!- gcells(gcells@ny1.hashbang.sh) has joined #tryton | 16:01 | |
| -!- ajain(ajain@sf1.hashbang.sh) has joined #tryton | 16:12 | |
| -!- csotelo(~csotelo@190.234.41.50) has joined #tryton | 16:21 | |
| -!- gcells(gcells@ny1.hashbang.sh) has joined #tryton | 16:26 | |
| -!- gcells(gcells@ny1.hashbang.sh) has joined #tryton | 17:06 | |
| -!- gcells(gcells@ny1.hashbang.sh) has left #tryton | 17:08 | |
| -!- gcells(gcells@ny1.hashbang.sh) has joined #tryton | 17:13 | |
| -!- gcells(gcells@ny1.hashbang.sh) has left #tryton | 17:13 | |
| -!- gcells1(gcells@ny1.hashbang.sh) has joined #tryton | 17:16 | |
| -!- ajain(ajain@unaffiliated/ajain) has joined #tryton | 17:31 | |
| -!- gcells(gcells@ny1.hashbang.sh) has joined #tryton | 17:42 | |
| -!- gcells(gcells@unaffiliated/gcells) has joined #tryton | 17:47 | |
| -!- gcells(gcells@ny1.hashbang.sh) has joined #tryton | 18:11 | |
| -!- gcells(gcells@unaffiliated/gcells) has joined #tryton | 18:13 | |
| -!- semarie(~semarie@unaffiliated/semarie) has joined #tryton | 20:00 | |
| -!- csotelo(~csotelo@190.234.41.50) has joined #tryton | 21:42 | |
| -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 21:44 | |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!