IRC logs of #tryton for Wednesday, 2016-07-13

chat.freenode.net #tryton log beginning Wed Jul 13 00:00:02 CEST 2016
2016-07-13 00:02 -!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton
2016-07-13 00:23 -!- perilla(~perilla@corp-190-57-169-210-cue.puntonet.ec) has joined #tryton
2016-07-13 03:40 -!- pelox(~rail@gusl/staff/risturiz) has joined #tryton
2016-07-13 03:48 -!- giesen(quassel@ego.giesen.me) has joined #tryton
2016-07-13 06:01 -!- niki_(~niki@0x3e2c871e.mobile.telia.dk) has joined #tryton
2016-07-13 06:05 -!- giesen(~ggiesen@2001:19f0:0:1019:5400:ff:fe25:bda6) has joined #tryton
2016-07-13 08:10 -!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton
2016-07-13 08:14 -!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton
2016-07-13 08:44 -!- udono(~udono@ip-37-201-245-214.hsi13.unitymediagroup.de) has joined #tryton
2016-07-13 08:57 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton
2016-07-13 09:03 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-07-13 09:04 -!- nicoe(~nicoe@103.240.242.247) has joined #tryton
2016-07-13 09:29 -!- Timitos(~kpreisler@tmo-104-53.customers.d1-online.com) has joined #tryton
2016-07-13 09:32 -!- Timitos(~kpreisler@tmo-104-53.customers.d1-online.com) has left #tryton
2016-07-13 09:33 -!- Timitos(~kpreisler@tmo-104-53.customers.d1-online.com) has joined #tryton
2016-07-13 09:39 -!- aasnan(~angel@48.red-83-45-194.dynamicip.rima-tde.net) has joined #tryton
2016-07-13 10:13 -!- yangoon(~mathiasb@pD9F1326F.dip0.t-ipconnect.de) has joined #tryton
2016-07-13 10:21 -!- shrox(shrox@nat/iiit/x-twgicozoayrcchbd) has joined #tryton
2016-07-13 10:34 <shrox> cedk: I need some help. I begun with going about simplifying the understanding of my code by getting the split_file function to return a dictionary with filename: string for all the tags. Then I made another method that reads this dictionary and writes the files to a zip. This goes fine.
2016-07-13 10:34 <shrox> However, when I read content.xml for the images (something that I want to change later), something inexplicably goes wrong and my generated odt is no longer readable without fixing.
2016-07-13 10:37 <shrox> cedk: I am sure my new method which writes the split files to the zip works fine because if I don't run the handle_images method, the generated odt is still good. But because of something that I cannot figure, just reading the zip_file breaks something. Which is funny because I was reading it earlier, anyway.
2016-07-13 10:37 <shrox> cedk: I've updated the codebase on github if you want to have a look.
2016-07-13 10:37 <pokoli> shrox: which is the github url?
2016-07-13 10:38 <shrox> pokoli: https://github.com/shrox/test-gsoc/blob/master/fod2od.py
2016-07-13 10:45 <pokoli> shrox: can be that your replace the previous generated context.xml and then write a invalid structure?
2016-07-13 10:53 <shrox> pokoli: I am only reading the content.xml. Not writing anything back. I read the same file again and it has the same string. So I don't think that is the case.
2016-07-13 10:54 <pokoli> shrox: AFAIU it's written on https://github.com/shrox/test-gsoc/blob/master/fod2od.py#L120
2016-07-13 10:55 <shrox> pokoli: That's correct. But I commented out the whole thing to understand where the odt is breaking and it breaks on the very first line itself. https://github.com/shrox/test-gsoc/blob/master/fod2od.py#L78
2016-07-13 10:56 <pokoli> shrox: sorry I thought, that all the commented code was which was wrong
2016-07-13 10:56 <pokoli> shrox: do you have any exception? Or how it breaks?
2016-07-13 10:57 <shrox> pokoli: No problem. It doesn't give me an error. Just generates an odt that is broken. I cannot unzip the odt properly, but it seems that the problem isn't with content.xml at all but one of the other files. meta.xml and/or styles.xml
2016-07-13 11:03 <pokoli> shrox: sorry but i can not see the relation
2016-07-13 11:03 <shrox> pokoli: exactly :/ it seems very bizarre to me. I'm doing just what I was doing before.
2016-07-13 11:09 <cedk> shrox: I think you must debug
2016-07-13 11:09 <cedk> shrox: look at the value at each point
2016-07-13 11:09 <cedk> shrox: also look at the generated xml in the zip
2016-07-13 11:12 <shrox> cedk: I did look at the generated xml files. something goes wrong with meta.xml and/or styles.xml. And reading the meta.xml file from the zip_file gives the expected output.
2016-07-13 11:14 <shrox> cedk: Making a dictionary of the split_files is okay, right? Asking so that I can look into this more, provided that I'm on the right track.
2016-07-13 11:17 <cedk> shrox: if you have the expected result than it is something else
2016-07-13 11:20 <shrox> cedk: Like I mentioned earlier, what I've broken it down to right now is that "content_string = zip_file.read("content.xml")" breaks something. If I pass the whole method then the odt is generated just fine. The problem is there, but why I don't know.
2016-07-13 11:20 <shrox> https://github.com/shrox/test-gsoc/blob/master/fod2od.py#L78
2016-07-13 11:22 <cedk> shrox: you have to find what is broken
2016-07-13 11:24 <shrox> cedk: Yes. On it. If there's something obvious that I might have overlooked that strikes you, let me know.
2016-07-13 11:26 <cedk> shrox: only think I can image is that read call move a pointer and so after that you read something else
2016-07-13 11:30 -!- resteve(~resteve@185.73.168.7) has joined #tryton
2016-07-13 11:31 <shrox> cedk: Okay. Will check from scratch.
2016-07-13 11:43 <pokoli> cedk: do you mind if I push https://tryton-rietveld-hrd.appspot.com/28431002/ ??
2016-07-13 11:45 <cedk> pokoli: yes I do mind because I think it is wrong
2016-07-13 11:49 <pokoli> cedk: so your comments will be apreciated :)
2016-07-13 11:51 <pokoli> cedk: don't worry, I think I know what's the problem. Thanks
2016-07-13 12:57 -!- aroncero(~aroncero@cpc91052-lock3-2-0-cust42.6-1.cable.virginm.net) has joined #tryton
2016-07-13 12:58 <pokoli> hi, anyone know which startup script is included in debian ubuntu packages?
2016-07-13 13:09 <yangoon> pokoli: speaking for Debian: sysvinit + systemd service files included
2016-07-13 13:10 <yangoon> and ubuntu pulls from Debian
2016-07-13 13:13 <pokoli> yangoon: thanks
2016-07-13 13:18 -!- mariomop(~quassel@host93.190-137-33.telecom.net.ar) has joined #tryton
2016-07-13 16:08 -!- aasnan(~angel@48.red-83-45-194.dynamicip.rima-tde.net) has left #tryton
2016-07-13 16:24 -!- kstenger(~karla@r190-133-243-190.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-07-13 17:16 -!- xavier__(~xavier@cli-5b7e4c02.wholesale.adamo.es) has joined #tryton
2016-07-13 17:18 -!- xcodinas(~xavier@cli-5b7e4c02.wholesale.adamo.es) has joined #tryton
2016-07-13 17:21 -!- xcodinas(~xavier@cli-5b7e4c02.wholesale.adamo.es) has joined #tryton
2016-07-13 17:28 -!- xavier__(~xcodinas@91.126.76.2) has joined #tryton
2016-07-13 17:30 -!- xcodinas(~xcodinas@91.126.76.2) has joined #tryton
2016-07-13 17:50 -!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton
2016-07-13 18:20 -!- kstenger(~karla@r190-133-243-190.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-07-13 18:35 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2016-07-13 18:56 -!- caleb_(~caleb@bb-66-63-86-50.static.gwi.net) has joined #tryton
2016-07-13 19:56 -!- bvillasanti(~bvillasan@138.117.21.154) has joined #tryton
2016-07-13 20:05 -!- shrox(shrox@nat/iiit/x-rotigxwrzgvwdioi) has joined #tryton
2016-07-13 21:27 -!- kstenger1(~karla@r167-56-234-148.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-07-13 21:44 -!- bvillasanti(~bvillasan@138.117.21.154) has joined #tryton
2016-07-13 22:02 -!- bvillasanti(~bvillasan@138.117.21.154) has joined #tryton
2016-07-13 23:25 -!- JosDzG(~Thunderbi@189.195.156.226) has joined #tryton

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