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

chat.freenode.net #tryton log beginning Wed Jul 13 00:00:02 CEST 2016
-!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton00:02
-!- perilla(~perilla@corp-190-57-169-210-cue.puntonet.ec) has joined #tryton00:23
-!- pelox(~rail@gusl/staff/risturiz) has joined #tryton03:40
-!- giesen(quassel@ego.giesen.me) has joined #tryton03:48
-!- niki_(~niki@0x3e2c871e.mobile.telia.dk) has joined #tryton06:01
-!- giesen(~ggiesen@2001:19f0:0:1019:5400:ff:fe25:bda6) has joined #tryton06:05
-!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton08:10
-!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton08:14
-!- udono(~udono@ip-37-201-245-214.hsi13.unitymediagroup.de) has joined #tryton08:44
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton08:57
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:03
-!- nicoe(~nicoe@103.240.242.247) has joined #tryton09:04
-!- Timitos(~kpreisler@tmo-104-53.customers.d1-online.com) has joined #tryton09:29
-!- Timitos(~kpreisler@tmo-104-53.customers.d1-online.com) has left #tryton09:32
-!- Timitos(~kpreisler@tmo-104-53.customers.d1-online.com) has joined #tryton09:33
-!- aasnan(~angel@48.red-83-45-194.dynamicip.rima-tde.net) has joined #tryton09:39
-!- yangoon(~mathiasb@pD9F1326F.dip0.t-ipconnect.de) has joined #tryton10:13
-!- shrox(shrox@nat/iiit/x-twgicozoayrcchbd) has joined #tryton10:21
shroxcedk: 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.10:34
shroxHowever, 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.10:34
shroxcedk: 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.10:37
shroxcedk: I've updated the codebase on github if you want to have a look.10:37
pokolishrox: which is the github url?10:37
shroxpokoli: https://github.com/shrox/test-gsoc/blob/master/fod2od.py10:38
pokolishrox: can be that your replace the previous generated context.xml and then write a invalid structure?10:45
shroxpokoli: 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.10:53
pokolishrox: AFAIU it's written on https://github.com/shrox/test-gsoc/blob/master/fod2od.py#L12010:54
shroxpokoli: 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#L7810:55
pokolishrox: sorry I thought, that all the commented code was which was wrong10:56
pokolishrox: do you have any exception? Or how it breaks?10:56
shroxpokoli: 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.xml10:57
pokolishrox: sorry but i can not see the relation11:03
shroxpokoli: exactly :/ it seems very bizarre to me. I'm doing just what I was doing before.11:03
cedkshrox: I think you must debug11:09
cedkshrox: look at the value at each point11:09
cedkshrox: also look at the generated xml in the zip11:09
shroxcedk: 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.11:12
shroxcedk: 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.11:14
cedkshrox: if you have the expected result than it is something else11:17
shroxcedk: 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.11:20
shroxhttps://github.com/shrox/test-gsoc/blob/master/fod2od.py#L7811:20
cedkshrox: you have to find what is broken11:22
shroxcedk: Yes. On it. If there's something obvious that I might have overlooked that strikes you, let me know.11:24
cedkshrox: only think I can image is that read call move a pointer and so after that you read something else11:26
-!- resteve(~resteve@185.73.168.7) has joined #tryton11:30
shroxcedk: Okay. Will check from scratch.11:31
pokolicedk: do you mind if I push https://tryton-rietveld-hrd.appspot.com/28431002/ ??11:43
cedkpokoli: yes I do mind because I think it is wrong11:45
pokolicedk: so your comments will be apreciated :)11:49
pokolicedk: don't worry, I think I know what's the problem. Thanks11:51
-!- aroncero(~aroncero@cpc91052-lock3-2-0-cust42.6-1.cable.virginm.net) has joined #tryton12:57
pokolihi, anyone know which startup script is included in debian ubuntu packages?12:58
yangoonpokoli: speaking for Debian: sysvinit + systemd service files included13:09
yangoonand ubuntu pulls from Debian13:10
pokoliyangoon: thanks13:13
-!- mariomop(~quassel@host93.190-137-33.telecom.net.ar) has joined #tryton13:18
-!- aasnan(~angel@48.red-83-45-194.dynamicip.rima-tde.net) has left #tryton16:08
-!- kstenger(~karla@r190-133-243-190.dialup.adsl.anteldata.net.uy) has joined #tryton16:24
-!- xavier__(~xavier@cli-5b7e4c02.wholesale.adamo.es) has joined #tryton17:16
-!- xcodinas(~xavier@cli-5b7e4c02.wholesale.adamo.es) has joined #tryton17:18
-!- xcodinas(~xavier@cli-5b7e4c02.wholesale.adamo.es) has joined #tryton17:21
-!- xavier__(~xcodinas@91.126.76.2) has joined #tryton17:28
-!- xcodinas(~xcodinas@91.126.76.2) has joined #tryton17:30
-!- xcodinas(~xcodinas@unaffiliated/xcodinas) has joined #tryton17:50
-!- kstenger(~karla@r190-133-243-190.dialup.adsl.anteldata.net.uy) has joined #tryton18:20
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton18:35
-!- caleb_(~caleb@bb-66-63-86-50.static.gwi.net) has joined #tryton18:56
-!- bvillasanti(~bvillasan@138.117.21.154) has joined #tryton19:56
-!- shrox(shrox@nat/iiit/x-rotigxwrzgvwdioi) has joined #tryton20:05
-!- kstenger1(~karla@r167-56-234-148.dialup.adsl.anteldata.net.uy) has joined #tryton21:27
-!- bvillasanti(~bvillasan@138.117.21.154) has joined #tryton21:44
-!- bvillasanti(~bvillasan@138.117.21.154) has joined #tryton22:02
-!- JosDzG(~Thunderbi@189.195.156.226) has joined #tryton23:25

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