IRC logs of #tryton for Friday, 2017-06-16

chat.freenode.net #tryton log beginning Fri Jun 16 00:00:01 CEST 2017
-!- csotelo(~csotelo@2001:1388:49c6:5c38:1513:89ca:be23:6b46) has joined #tryton01:08
-!- sebd(~seb@aditu.ldd.fr) has joined #tryton01:36
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:49
-!- kobain(~kobain@unaffiliated/kobain) has joined #tryton01:53
-!- JosDzG(~Thunderbi@189.250.45.130) has joined #tryton02:08
-!- kstenger(~karla@r186-50-19-231.dialup.adsl.anteldata.net.uy) has joined #tryton05:00
-!- _2cadz(~ccr@ax313-1-82-66-159-99.fbx.proxad.net) has joined #tryton06:52
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:31
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:37
-!- rpit(~rpit@aftr-37-24-144-89.unity-media.net) has joined #tryton08:43
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:59
-!- thaneor1(~ldlc6@179.26.31.183) has joined #tryton10:02
-!- _2cadz(~ccr@ax313-1-82-66-159-99.fbx.proxad.net) has joined #tryton10:04
-!- udono(~udono@b9168fb8.cgn.dg-w.de) has joined #tryton10:07
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton10:14
pokoliany idea what may cause https://drone.tryton.org/trypod.tryton.org/tryton/trytond/default/81c47b061d2ea6c03c6576225089991764743422 ?10:29
pokoliI'm running on my machine without problems10:30
pokoliI'm wondering which py27 version is running on drone10:30
cedkpokoli: it is an old version10:40
pokolitested on python2.7.9 (and currently testing on 2.7.7) and it works10:43
pokolicedk: may be there is some issue with drone?10:43
pokolicedk: https://drone.tryton.org/trypod.tryton.org/tryton/modules.stock_supply_production/default/0843ad6ad89184d3ec54a8b6b1db88b3c0f96274 is also failing which also works for me :$10:43
cedkpokoli: 2.7.310:44
-!- fabix(~chatmovil@qena.raceme.org) has joined #tryton10:45
cedkpokoli: did you try to rebuild them?10:45
pokolicedk: is the docker image available somewhere?10:45
pokolicedk: yes, I'm running on a fresh container. Cloning and runing tox10:45
cedkpokoli: bradrydzewski/python:all but we have a local modified one10:45
fabixhello10:46
pokolicedk: this image is no longer avaiable on docker hub10:47
fabixis it possible to modify reports templates with libreoffice or is it only possible with openoffice ?10:47
pokolifabix: hi :) It's also possible with libreoffice10:47
fabixI tried with LO , I don't manage to insert a text field10:49
fabixI can just copy an existing field and modify it but it's not very practical10:50
cedkpokoli: you can connect to tycho.b2ck.com on port 2222 with your ssh key10:52
fabixis there a more practical way to include these fields (modify directly the xml of the odt with vim or emacs for example) ?10:53
pokolifabix: you have to use a text-type placeholder in order modify variables: http://relatorio.readthedocs.io/en/stable/quickexample.html#template10:55
pokolicedk: I'm not able to run docker with my user10:55
pokolifabix: indeed, we are switching to flat open documents: https://bugs.tryton.org/issue654510:56
pokolifabix: so you should be able to edit the text directly with any text editor10:56
fabixyes, I've seen all that yesterday10:57
pokolifabix: and there is also: https://bugs.tryton.org/issue596410:57
cedkpokoli: and now10:59
pokolicedk: working now, thanks :)11:01
fabixpokoli: the quick example of relatorio is not applicable on libreoffice11:21
nicoefabix: I use this https://stackoverflow.com/questions/22387836/open-a-docx-file-as-a-zip-in-vim to open odt in vim11:27
nicoefabix: but you have to be very careful (I guess you already know it)11:28
cedkfabix: why are you saying that the example does not work?11:30
fabixcedk: "you need to create a text-type placeholder field" ; maybe I don't do the good thing but I don't manage to do that11:36
cedkfabix: placeholder exist on libreoffice, it is part of the standard OpenDocument11:38
fabixhow do you insert the placeholder field ?  Insert->Fields and then ?11:39
cedkfabix: seleft Placeholder11:39
fabixI don't see that11:40
fabixCtrl+F2 ?11:40
fabixI've launched LO with LANG=C to have english terms but I don't see "Placeholder" in the fields menu11:42
fabixI can just copy/paste existing ones11:43
fabixIt's LO 4.3.3.211:44
nicoefabix: you can also use the URL which I guess LO has not remove from its UI12:04
-!- wifasoi(8c69cff5@gateway/web/cgi-irc/kiwiirc.com/ip.140.105.207.245) has joined #tryton12:04
nicoeThe "more complicated" example use this IIRC12:05
-!- wifasoi(8c69cff5@mittelab/sudo/wifasoi) has joined #tryton12:05
pokolifabix: in libreoffice 5 i have it on: Insert -> Fields -> More Fields. And then you have to select Placeholder from the Functions tab12:06
pokolifabix: and yes, that's managed by control+F212:07
cedkpokoli: did you find the problem?12:08
pokolicedk: i managed to reproduce it, but I didn't have time to dig futher as xcodinas requested my attention :)12:09
pokolicedk: I'm checking now, but it's strange. As the stock_supply_production module also fails. Which for me is unrelated12:09
fabixok, I found it in Functions tab... tx12:10
wifasoihi, in my pursue to understand how extend tryton i create my very first module. But it doesn't work (the view is fine). i think becouse the metod i want to cange is """"private"""" and without the @classmethod decorator (github link for convenience: https://github.com/tryton/sale_subscription/blob/develop/subscription.py#L352)12:15
cedkwifasoi: the real *private* in Python is with double underscore12:17
cedkwifasoi: are you sure you registered the model in the pool?12:18
wifasoii think yes... but i'll check.. maibe there is a typo in the __init__12:18
pokolicedk: on python2.7.3, the uri parameters are returned on path instead of query12:51
pokolicedk: http://hg.tryton.org/trytond/rev/81c47b061d2e#l3.1612:51
pokolicedk: maybe we should support both options?12:51
cedkpokoli: indeed it is https://bugs.python.org/issue937412:58
cedkpokoli: I guess we can check if query is empty if '?' is in the url12:59
cedkpokoli: it is parse_uri that should do that12:59
-!- wifasoi(8c69cff5@mittelab/sudo/wifasoi) has joined #tryton13:03
pokolicedk: ok, let me try to provide a patch13:04
-!- mariomop(~quassel@181.88.210.43) has joined #tryton13:06
wifasoii put subscription.Subscription (nameofthefile.nameoftheclass).. don't know if it is correct13:07
wifasoiad import the file/module with from . import subscription13:08
cedkwifasoi: tryton does not care about this name, it cares about __name__13:33
pokolicedk: https://tryton-rietveld.appspot.com/4046100213:40
cedkpokoli: it seems quite complex13:49
cedkpokoli: what about skipping the test for specific python version?13:50
-!- yangoon1(~mathiasb@p5DFE034F.dip0.t-ipconnect.de) has joined #tryton13:51
cedkpokoli: what I really dislike is the usage of ParseResult which is not supposed to be public13:51
pokolicedk: indeed i not like so much having all the code there to fix something thats fixed on a version released 4 years ago14:13
pokolicedk: using parse result is the only way i found to create a proper response14:14
pokolicedk: I'm happy with skiping the test14:14
wifasoiok i checked the __name__, is the same as in the class of the module i want to change... the code is here https://git.mittelab.org/wifasoi/trytond_account_subscription_receivable/blob/master/subscription.py if someone have time/want to check15:15
-!- g5pw(~g5pw@mittelab/sudo/g5pw) has left #tryton15:16
-!- g5pw(~g5pw@mittelab/sudo/g5pw) has joined #tryton15:16
g5pwohai wifasoi :P15:16
wifasoihi15:18
-!- _2cadz(~ccr@ax313-1-82-66-159-99.fbx.proxad.net) has joined #tryton15:26
cedkwifasoi: when extending an existing module, you must not inherit from Model but use the metaclass PoolMeta15:40
cedkwifasoi: you should also always call super15:41
cedkwifasoi: also do not suffix with trytond_ non standard module15:41
wifasoinoted.. i'll change it15:42
wifasoithanks15:43
-!- JanGB(~jan@dslb-094-222-147-009.094.222.pools.vodafone-ip.de) has joined #tryton15:59
-!- JanGB(~jan@dslb-094-222-147-009.094.222.pools.vodafone-ip.de) has joined #tryton16:12
oxidworksHello, would you recommend to use Tryton with Python3 and what is a good version to switch? I just updated from Tyton 3.2 to 3.6 and next update ist planed. regards.16:27
oxidworksok, If I unserstand it correctly only the modules are Python3 ready: https://bugs.tryton.org/issue321116:33
-!- smarro(~sebastian@181.16.7.104) has joined #tryton16:33
sisalpfabix: is your problem solved ? I have no problem with LO, whetever the version is.16:39
nicoeoxidworks: the modules and the server16:40
nicoeoxidworks: the client is not ready yet indeed16:40
fabixsisalp: yes, I didn't found "placeholder" ; it is in Functions tab16:41
fabixCtrl+F2 doesn't work on my computer but it's another problem16:42
-!- csotelo(~csotelo@2001:1388:49c6:5c38:1513:89ca:be23:6b46) has joined #tryton16:43
-!- _2cadz(~ccr@ax313-1-82-66-159-99.fbx.proxad.net) has joined #tryton16:46
cedkoxidworks: tryton is tested on both versions of Python16:48
-!- kstenger1(~karla@r179-24-187-5.dialup.adsl.anteldata.net.uy) has joined #tryton17:01
-!- JosDzG(~Thunderbi@189.250.45.130) has joined #tryton17:23
oxidworksthanks17:34
-!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton19:02
-!- g5pw(~g5pw@mittelab/sudo/g5pw) has joined #tryton19:04
-!- rpit(~rpit@aftr-37-24-144-89.unity-media.net) has joined #tryton19:15
-!- mrichez(~smuxi@165.103-244-81.adsl-dyn.isp.belgacom.be) has joined #tryton19:48
-!- thaneor(~ldlc6@179.26.31.183) has joined #tryton20:19
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton20:35
-!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton20:48
-!- alexbodn(~alex@213.57.190.189) has joined #tryton20:50
-!- nicoe(~nicoe@2a02:a03f:30b2:3c00:ee55:f9ff:fe7b:f7ac) has joined #tryton21:22
-!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton21:28
-!- JosDzG(~Thunderbi@189.250.45.130) has joined #tryton21:29
-!- JanGB(~jan@146.52.56.23) has joined #tryton21:58
-!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton22:00
-!- thaneor1(~ldlc6@r179-25-172-86.dialup.adsl.anteldata.net.uy) has joined #tryton22:07
-!- silwol(silwolmatr@gateway/shell/matrix.org/x-rxauevulkzlewobq) has joined #tryton23:33
-!- JosDzG(~Thunderbi@189.250.45.130) has joined #tryton23:34

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