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

chat.freenode.net #tryton log beginning Fri Jun 16 00:00:01 CEST 2017
2017-06-16 01:08 -!- csotelo(~csotelo@2001:1388:49c6:5c38:1513:89ca:be23:6b46) has joined #tryton
2017-06-16 01:36 -!- sebd(~seb@aditu.ldd.fr) has joined #tryton
2017-06-16 01:49 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-06-16 01:53 -!- kobain(~kobain@unaffiliated/kobain) has joined #tryton
2017-06-16 02:08 -!- JosDzG(~Thunderbi@189.250.45.130) has joined #tryton
2017-06-16 05:00 -!- kstenger(~karla@r186-50-19-231.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-06-16 06:52 -!- _2cadz(~ccr@ax313-1-82-66-159-99.fbx.proxad.net) has joined #tryton
2017-06-16 08:31 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2017-06-16 08:37 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2017-06-16 08:43 -!- rpit(~rpit@aftr-37-24-144-89.unity-media.net) has joined #tryton
2017-06-16 08:59 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2017-06-16 10:02 -!- thaneor1(~ldlc6@179.26.31.183) has joined #tryton
2017-06-16 10:04 -!- _2cadz(~ccr@ax313-1-82-66-159-99.fbx.proxad.net) has joined #tryton
2017-06-16 10:07 -!- udono(~udono@b9168fb8.cgn.dg-w.de) has joined #tryton
2017-06-16 10:14 -!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton
2017-06-16 10:29 <pokoli> any idea what may cause https://drone.tryton.org/trypod.tryton.org/tryton/trytond/default/81c47b061d2ea6c03c6576225089991764743422 ?
2017-06-16 10:30 <pokoli> I'm running on my machine without problems
2017-06-16 10:30 <pokoli> I'm wondering which py27 version is running on drone
2017-06-16 10:40 <cedk> pokoli: it is an old version
2017-06-16 10:43 <pokoli> tested on python2.7.9 (and currently testing on 2.7.7) and it works
2017-06-16 10:43 <pokoli> cedk: may be there is some issue with drone?
2017-06-16 10:43 <pokoli> cedk: https://drone.tryton.org/trypod.tryton.org/tryton/modules.stock_supply_production/default/0843ad6ad89184d3ec54a8b6b1db88b3c0f96274 is also failing which also works for me :$
2017-06-16 10:44 <cedk> pokoli: 2.7.3
2017-06-16 10:45 -!- fabix(~chatmovil@qena.raceme.org) has joined #tryton
2017-06-16 10:45 <cedk> pokoli: did you try to rebuild them?
2017-06-16 10:45 <pokoli> cedk: is the docker image available somewhere?
2017-06-16 10:45 <pokoli> cedk: yes, I'm running on a fresh container. Cloning and runing tox
2017-06-16 10:45 <cedk> pokoli: bradrydzewski/python:all but we have a local modified one
2017-06-16 10:46 <fabix> hello
2017-06-16 10:47 <pokoli> cedk: this image is no longer avaiable on docker hub
2017-06-16 10:47 <fabix> is it possible to modify reports templates with libreoffice or is it only possible with openoffice ?
2017-06-16 10:47 <pokoli> fabix: hi :) It's also possible with libreoffice
2017-06-16 10:49 <fabix> I tried with LO , I don't manage to insert a text field
2017-06-16 10:50 <fabix> I can just copy an existing field and modify it but it's not very practical
2017-06-16 10:52 <cedk> pokoli: you can connect to tycho.b2ck.com on port 2222 with your ssh key
2017-06-16 10:53 <fabix> is there a more practical way to include these fields (modify directly the xml of the odt with vim or emacs for example) ?
2017-06-16 10:55 <pokoli> fabix: you have to use a text-type placeholder in order modify variables: http://relatorio.readthedocs.io/en/stable/quickexample.html#template
2017-06-16 10:55 <pokoli> cedk: I'm not able to run docker with my user
2017-06-16 10:56 <pokoli> fabix: indeed, we are switching to flat open documents: https://bugs.tryton.org/issue6545
2017-06-16 10:56 <pokoli> fabix: so you should be able to edit the text directly with any text editor
2017-06-16 10:57 <fabix> yes, I've seen all that yesterday
2017-06-16 10:57 <pokoli> fabix: and there is also: https://bugs.tryton.org/issue5964
2017-06-16 10:59 <cedk> pokoli: and now
2017-06-16 11:01 <pokoli> cedk: working now, thanks :)
2017-06-16 11:21 <fabix> pokoli: the quick example of relatorio is not applicable on libreoffice
2017-06-16 11:27 <nicoe> fabix: I use this https://stackoverflow.com/questions/22387836/open-a-docx-file-as-a-zip-in-vim to open odt in vim
2017-06-16 11:28 <nicoe> fabix: but you have to be very careful (I guess you already know it)
2017-06-16 11:30 <cedk> fabix: why are you saying that the example does not work?
2017-06-16 11:36 <fabix> cedk: "you need to create a text-type placeholder field" ; maybe I don't do the good thing but I don't manage to do that
2017-06-16 11:38 <cedk> fabix: placeholder exist on libreoffice, it is part of the standard OpenDocument
2017-06-16 11:39 <fabix> how do you insert the placeholder field ? Insert->Fields and then ?
2017-06-16 11:39 <cedk> fabix: seleft Placeholder
2017-06-16 11:40 <fabix> I don't see that
2017-06-16 11:40 <fabix> Ctrl+F2 ?
2017-06-16 11:42 <fabix> I've launched LO with LANG=C to have english terms but I don't see "Placeholder" in the fields menu
2017-06-16 11:43 <fabix> I can just copy/paste existing ones
2017-06-16 11:44 <fabix> It's LO 4.3.3.2
2017-06-16 12:04 <nicoe> fabix: you can also use the URL which I guess LO has not remove from its UI
2017-06-16 12:04 -!- wifasoi(8c69cff5@gateway/web/cgi-irc/kiwiirc.com/ip.140.105.207.245) has joined #tryton
2017-06-16 12:05 <nicoe> The "more complicated" example use this IIRC
2017-06-16 12:05 -!- wifasoi(8c69cff5@mittelab/sudo/wifasoi) has joined #tryton
2017-06-16 12:06 <pokoli> fabix: in libreoffice 5 i have it on: Insert -> Fields -> More Fields. And then you have to select Placeholder from the Functions tab
2017-06-16 12:07 <pokoli> fabix: and yes, that's managed by control+F2
2017-06-16 12:08 <cedk> pokoli: did you find the problem?
2017-06-16 12:09 <pokoli> cedk: i managed to reproduce it, but I didn't have time to dig futher as xcodinas requested my attention :)
2017-06-16 12:09 <pokoli> cedk: I'm checking now, but it's strange. As the stock_supply_production module also fails. Which for me is unrelated
2017-06-16 12:10 <fabix> ok, I found it in Functions tab... tx
2017-06-16 12:15 <wifasoi> hi, 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)
2017-06-16 12:17 <cedk> wifasoi: the real *private* in Python is with double underscore
2017-06-16 12:18 <cedk> wifasoi: are you sure you registered the model in the pool?
2017-06-16 12:18 <wifasoi> i think yes... but i'll check.. maibe there is a typo in the __init__
2017-06-16 12:51 <pokoli> cedk: on python2.7.3, the uri parameters are returned on path instead of query
2017-06-16 12:51 <pokoli> cedk: http://hg.tryton.org/trytond/rev/81c47b061d2e#l3.16
2017-06-16 12:51 <pokoli> cedk: maybe we should support both options?
2017-06-16 12:58 <cedk> pokoli: indeed it is https://bugs.python.org/issue9374
2017-06-16 12:59 <cedk> pokoli: I guess we can check if query is empty if '?' is in the url
2017-06-16 12:59 <cedk> pokoli: it is parse_uri that should do that
2017-06-16 13:03 -!- wifasoi(8c69cff5@mittelab/sudo/wifasoi) has joined #tryton
2017-06-16 13:04 <pokoli> cedk: ok, let me try to provide a patch
2017-06-16 13:06 -!- mariomop(~quassel@181.88.210.43) has joined #tryton
2017-06-16 13:07 <wifasoi> i put subscription.Subscription (nameofthefile.nameoftheclass).. don't know if it is correct
2017-06-16 13:08 <wifasoi> ad import the file/module with from . import subscription
2017-06-16 13:33 <cedk> wifasoi: tryton does not care about this name, it cares about __name__
2017-06-16 13:40 <pokoli> cedk: https://tryton-rietveld.appspot.com/40461002
2017-06-16 13:49 <cedk> pokoli: it seems quite complex
2017-06-16 13:50 <cedk> pokoli: what about skipping the test for specific python version?
2017-06-16 13:51 -!- yangoon1(~mathiasb@p5DFE034F.dip0.t-ipconnect.de) has joined #tryton
2017-06-16 13:51 <cedk> pokoli: what I really dislike is the usage of ParseResult which is not supposed to be public
2017-06-16 14:13 <pokoli> cedk: indeed i not like so much having all the code there to fix something thats fixed on a version released 4 years ago
2017-06-16 14:14 <pokoli> cedk: using parse result is the only way i found to create a proper response
2017-06-16 14:14 <pokoli> cedk: I'm happy with skiping the test
2017-06-16 15:15 <wifasoi> ok 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 check
2017-06-16 15:16 -!- g5pw(~g5pw@mittelab/sudo/g5pw) has left #tryton
2017-06-16 15:16 -!- g5pw(~g5pw@mittelab/sudo/g5pw) has joined #tryton
2017-06-16 15:16 <g5pw> ohai wifasoi :P
2017-06-16 15:18 <wifasoi> hi
2017-06-16 15:26 -!- _2cadz(~ccr@ax313-1-82-66-159-99.fbx.proxad.net) has joined #tryton
2017-06-16 15:40 <cedk> wifasoi: when extending an existing module, you must not inherit from Model but use the metaclass PoolMeta
2017-06-16 15:41 <cedk> wifasoi: you should also always call super
2017-06-16 15:41 <cedk> wifasoi: also do not suffix with trytond_ non standard module
2017-06-16 15:42 <wifasoi> noted.. i'll change it
2017-06-16 15:43 <wifasoi> thanks
2017-06-16 15:59 -!- JanGB(~jan@dslb-094-222-147-009.094.222.pools.vodafone-ip.de) has joined #tryton
2017-06-16 16:12 -!- JanGB(~jan@dslb-094-222-147-009.094.222.pools.vodafone-ip.de) has joined #tryton
2017-06-16 16:27 <oxidworks> Hello, 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.
2017-06-16 16:33 <oxidworks> ok, If I unserstand it correctly only the modules are Python3 ready: https://bugs.tryton.org/issue3211
2017-06-16 16:33 -!- smarro(~sebastian@181.16.7.104) has joined #tryton
2017-06-16 16:39 <sisalp> fabix: is your problem solved ? I have no problem with LO, whetever the version is.
2017-06-16 16:40 <nicoe> oxidworks: the modules and the server
2017-06-16 16:40 <nicoe> oxidworks: the client is not ready yet indeed
2017-06-16 16:41 <fabix> sisalp: yes, I didn't found "placeholder" ; it is in Functions tab
2017-06-16 16:42 <fabix> Ctrl+F2 doesn't work on my computer but it's another problem
2017-06-16 16:43 -!- csotelo(~csotelo@2001:1388:49c6:5c38:1513:89ca:be23:6b46) has joined #tryton
2017-06-16 16:46 -!- _2cadz(~ccr@ax313-1-82-66-159-99.fbx.proxad.net) has joined #tryton
2017-06-16 16:48 <cedk> oxidworks: tryton is tested on both versions of Python
2017-06-16 17:01 -!- kstenger1(~karla@r179-24-187-5.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-06-16 17:23 -!- JosDzG(~Thunderbi@189.250.45.130) has joined #tryton
2017-06-16 17:34 <oxidworks> thanks
2017-06-16 19:02 -!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton
2017-06-16 19:04 -!- g5pw(~g5pw@mittelab/sudo/g5pw) has joined #tryton
2017-06-16 19:15 -!- rpit(~rpit@aftr-37-24-144-89.unity-media.net) has joined #tryton
2017-06-16 19:48 -!- mrichez(~smuxi@165.103-244-81.adsl-dyn.isp.belgacom.be) has joined #tryton
2017-06-16 20:19 -!- thaneor(~ldlc6@179.26.31.183) has joined #tryton
2017-06-16 20:35 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2017-06-16 20:48 -!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton
2017-06-16 20:50 -!- alexbodn(~alex@213.57.190.189) has joined #tryton
2017-06-16 21:22 -!- nicoe(~nicoe@2a02:a03f:30b2:3c00:ee55:f9ff:fe7b:f7ac) has joined #tryton
2017-06-16 21:28 -!- JanGB(~jan@ip92343817.dynamic.kabel-deutschland.de) has joined #tryton
2017-06-16 21:29 -!- JosDzG(~Thunderbi@189.250.45.130) has joined #tryton
2017-06-16 21:58 -!- JanGB(~jan@146.52.56.23) has joined #tryton
2017-06-16 22:00 -!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton
2017-06-16 22:07 -!- thaneor1(~ldlc6@r179-25-172-86.dialup.adsl.anteldata.net.uy) has joined #tryton
2017-06-16 23:33 -!- silwol(silwolmatr@gateway/shell/matrix.org/x-rxauevulkzlewobq) has joined #tryton
2017-06-16 23:34 -!- JosDzG(~Thunderbi@189.250.45.130) has joined #tryton

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