IRC logs of #tryton for Thursday, 2016-07-07

chat.freenode.net #tryton log beginning Thu Jul 7 00:00:02 CEST 2016
-!- zmijunkie1(~Adium@i59F5DA3A.versanet.de) has joined #tryton00:35
-!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton01:02
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:19
-!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton08:29
-!- aasnan(~angel@48.red-83-45-194.dynamicip.rima-tde.net) has joined #tryton08:33
-!- zmijunkie(~Adium@176.0.136.164) has joined #tryton08:41
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton08:57
-!- zmijunkie(~Adium@b2b-78-94-52-226.unitymedia.biz) has joined #tryton09:02
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:15
-!- yangoon_rm(~mathiasb@137.158.23.210) has joined #tryton09:16
-!- udono(~udono@tmo-098-146.customers.d1-online.com) has joined #tryton09:39
-!- yangoon_rm(~mathiasb@137.158.23.210) has joined #tryton10:09
-!- nicoe(~nicoe@balisto.wifi.b2ck.com) has joined #tryton10:11
-!- zmijunkie1(~Adium@b2b-78-94-52-226.unitymedia.biz) has joined #tryton10:52
-!- meigallodixital(~meigallod@188.72.113.6) has joined #tryton11:23
-!- yangoon_rm(~mathiasb@137.158.23.210) has joined #tryton11:34
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton12:09
-!- mariomop(~quassel@181.92.6.139) has joined #tryton12:54
-!- shrox(shrox@nat/iiit/x-sqhigtwzywgsxknd) has joined #tryton15:01
-!- yangoon_rm(~mathiasb@137.158.23.210) has joined #tryton15:04
-!- shrox(shrox@nat/iiit/x-lzpaikpedzoslcbq) has joined #tryton15:06
-!- kstenger(~karla@r186-50-16-37.dialup.adsl.anteldata.net.uy) has joined #tryton16:22
-!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton16:24
-!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton16:24
-!- paco__(4f90f0a5@gateway/web/freenode/ip.79.144.240.165) has joined #tryton16:32
paco__hi all! do you know if there is a modulo to manage loans in tryton?16:32
cedkpaco__: from which point of view?16:36
paco__from the point of view that it has regular payments, (more or less like an amortization), wich could be automated in some cases (fixed interest rates)...16:37
cedkpaco__: what is the advantage to compute it instead of entering it?16:44
paco__well it could update itself (the total pending value of amortization) instead of having to enter the amortization and interest payment every month...16:46
cedkpaco__: why are you talking about amortization?16:49
paco__sorry, i might be expressing myself poorly,i am talking about loan amortization... it is the payment of the loan itself, not interests.16:51
paco__but i was just checking if there was a module related to loans...16:52
-!- mariomop(~quassel@181.92.6.68) has joined #tryton16:54
shroxcedk: I've changed most of the things you asked me in the comments. Should I go ahead now with changing the way images are handled (that is, by reading the content.xml file again?)17:07
shroxcedk: Also, you had also mentioned that perhaps images could also be in the styles.xml file. I couldn't find any information about this online though.17:07
cedkshrox: try to put an image in the header/footer17:08
shroxcedk: Okay, it's there. How do you suggest I work on this?17:13
cedkshrox: what do you propose?17:17
cedkshrox: by the way, I still don't understand why you have a class?17:18
cedkshrox: instanciate a class and just call a method on it is just useless17:18
shroxcedk: class FODT2ODT? It slipped me again. Sorry.17:21
shroxcedk: For the images, I was just thinking of making another function for the body tag in content. But now that I see that there is the styles tag to take care of as well. I can make a function that will handle images and call it for styles and body.17:24
cedkshrox: I don't know17:25
cedkshrox: for now, I find the structure of your code very unclear17:25
shroxcedk: The class I thought would be necessary when importing. But I can of course just use a function.17:25
cedkshrox: I think it is the first thing to do is to have a clean design17:25
shroxcedk: Okay. Which part/s?17:26
cedkshrox: the all17:37
shroxcedk: Can you explain?17:38
cedkshrox: one of the most important think when written software is to have a clean structure of the code to make it easier for others to understand it17:39
cedkshrox: you write code to be read by others17:39
cedkshrox: for now, when I read your code, it is very difficult to understand17:40
cedkshrox: for example, the split_file method17:41
cedkit is complicated to understand what is going on17:41
cedkwith such name, I would expect to pass a file and to receive a list of splitted files17:42
cedkbut indeed the method write into a zip file a dump of a tree etc.17:43
cedkshrox: you should try to define a simple flow which will be cut into methods etc.17:44
cedkshrox: also don't try to do too much in one method17:44
cedkand also put docstring that explain what does the method17:44
cedkusually just trying to document, show you design issue17:45
cedkshrox: do you see my point?17:46
shroxcedk: Okay. Got it. I will try to make it simpler to understand.17:47
shroxcedk: Any specifics that you think I should especially change?17:48
cedkshrox: so key point: method doing simple thing that you can easy explain in the docstring17:48
cedkshrox: but be careful to be not too simple (like 1 line of code)17:48
shroxcedk: Sure17:49
cedkshrox: also try to minimize the number of argument of methods, it is often sign that it is too complex17:49
cedkshrox: so for odf2od, I think the zip management should be separated17:50
cedkshrox: you probably need to store the tree instances in a dict17:50
cedkshrox: and have an last method that take the dict and dump in a zipfile17:50
-!- zmijunkie(~Adium@i59F5DA3A.versanet.de) has joined #tryton17:53
shroxcedk: I didn't understand. Are you saying I should store"fodt_root", "fodt_namespaces", etc. in a dictionary and pass that in the methods?17:54
cedkshrox: don't know what is fodt_root17:58
shroxcedk: It's just what i get after getroot() on the tree18:00
shroxcedk: see the parse_fodt method18:04
cedkshrox: if we take tha split method, for me it should return the splitted stuff18:04
shroxcedk: Okay. A separate function take that and dump in the zipfile.18:05
-!- frispete(~frispete@p54A90CBF.dip0.t-ipconnect.de) has joined #tryton18:06
cedkshrox: it is just an example, you should try to apply a similar simple pattern18:09
shroxcedk: Okay. Will do.18:09
-!- aasnan(~angel@48.red-83-45-194.dynamicip.rima-tde.net) has left #tryton19:02
-!- yangoon_rm(~mathiasb@137.158.23.210) has joined #tryton19:02
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton19:23
-!- frispete(~frispete@p54A90CBF.dip0.t-ipconnect.de) has left #tryton20:01
-!- yangoon_rm(~mathiasb@137.158.23.210) has joined #tryton20:36
-!- kstenger1(~karla@r186-48-35-30.dialup.adsl.anteldata.net.uy) has joined #tryton21:01
-!- JosDzG(~Thunderbi@fixed-188-72-187-188-72-36.iusacell.net) has joined #tryton23:32
-!- yangoon_rm(~mathiasb@137.158.23.210) has joined #tryton23:37

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