IRC logs of #tryton for Tuesday, 2012-07-17

chat.freenode.net #tryton log beginning Tue Jul 17 00:00:01 CEST 2012
2012-07-17 00:50 -!- rhubner(~rhubner@189.58.60.189.dynamic.adsl.gvt.net.br) has left #tryton
2012-07-17 16:27 <rhubner> Hi nicoe
2012-07-17 16:29 <nicoe> rhubner: hello
2012-07-17 16:31 <rhubner> nicoe: I have a problem in widget...
2012-07-17 16:31 <rhubner> nicoe: when it call self.screen.reload() every methods are callel again
2012-07-17 16:33 <rhubner> nicoe: the problem is i dont have ou i dont know when it save the information of scale
2012-07-17 16:33 <rhubner> nicoe: or* i dont know
2012-07-17 16:34 <nicoe> What do you mean by 'save the information of scale'
2012-07-17 16:35 <rhubner> nicoe: when i moved the cursor of scale, every methods are called and information missing
2012-07-17 16:36 <rhubner> nicoe: did you understand?
2012-07-17 16:42 <nicoe> what information is missing ?
2012-07-17 16:43 <nicoe> in the codereview you do not set the context I see
2012-07-17 16:44 <rhubner> nicoe: the new gtk.Scale value chosen is missing when self.screen.reload() is called
2012-07-17 16:45 <rhubner> nicoe: I would have to store in some session variable, but I dont know how do this...
2012-07-17 16:46 <rhubner> nicoe: I didnt set the context with date beacause i cant resolve this
2012-07-17 16:46 <nicoe> rhubner: you should somehow remember what was the date before reloading
2012-07-17 16:47 <rhubner> nicoe: so.. some session variable store it, but how do it
2012-07-17 16:48 <nicoe> rhubner: store it on the widget
2012-07-17 16:49 <nicoe> rhubner: the TimelineWidget
2012-07-17 16:50 <rhubner> nicoe: but when the widget reload, the TimelineWidget is reloaded too
2012-07-17 16:50 <rhubner> nicoe: and every data is missing, did you understand?
2012-07-17 16:51 <nicoe> the TimeWidget is recreated each time ?
2012-07-17 16:51 <nicoe> I doubt it
2012-07-17 16:51 <rhubner> yes
2012-07-17 16:52 <nicoe> you mean that __init__ is called after change_record
2012-07-17 16:52 <rhubner> yes...
2012-07-17 16:52 <rhubner> this is the problem
2012-07-17 16:52 <nicoe> rhubner: btw only the timeline_wdiget.py file is available in the codereview
2012-07-17 16:53 <nicoe> rhubner: where is form.py ?
2012-07-17 16:54 <nicoe> rhubner: please upload a correct codereview with both files so that I can test
2012-07-17 16:54 <rhubner> nicoe: the first patch os code review i put form.py
2012-07-17 16:55 <nicoe> rhubner: the second patch must also include it
2012-07-17 16:55 <rhubner> of*
2012-07-17 16:55 <rhubner> bau the second patch the form.py didnt have changes ...
2012-07-17 16:55 <rhubner> but*
2012-07-17 16:56 <nicoe> rhubner: anyway from the trunk version of tryton both files have changed
2012-07-17 16:56 <nicoe> rhubner: so they must all be in the patch
2012-07-17 16:58 <rhubner> nicoe: haaaaaa but didnt I had to send only changes... everytime that i send in code review do i have to send from trunk version?
2012-07-17 16:59 <nicoe> rhubner: yes of course, other people only know about the trunk
2012-07-17 16:59 <rhubner> nicoe: I'll do that...
2012-07-17 17:00 <rhubner> nicoe: but how do i reload widget without call __init__ method?
2012-07-17 17:03 <rhubner> nicoe: this is only change in form.py: http://codereview.tryton.org/414004/patch/1/2
2012-07-17 17:09 <nicoe> rhubner: I know it but anyway you must provide a patch against trunk
2012-07-17 17:10 <nicoe> rhubner: for the reload I am investigating the issue
2012-07-17 17:11 <nicoe> rhubner: but according to me screen.reload do not go through the __init__ of ViewForm and thus do not go in the __init__ of TimelineWidget
2012-07-17 17:12 <nicoe> rhubner: please publish a correct codereview so that I can easily test
2012-07-17 17:12 <rhubner> nicoe: ok... I'll now
2012-07-17 17:13 <nicoe> rhubner: thanks
2012-07-17 17:26 <rhubner> nicoe: i think is right now: http://codereview.tryton.org/414004/
2012-07-17 17:27 <rhubner> nicoe: sorry if I left a line for print in the terminal, is to test!
2012-07-17 17:27 <rhubner> nicoe: i have lunch now, I'll be back in a moment
2012-07-17 17:28 <nicoe> rhubner: It's OK now, no problem for the print ;)
2012-07-17 17:58 <rhubner> nicoe: come back
2012-07-17 21:20 <__efx__> hi
2012-07-17 21:22 <__efx__> I use proteus actively and I would like to find a way to do an action before each time the save method is called without having to modify the core of proteus. Is it possible ? Basically is it possible to create a class that will inherit everything from the Model class and then just rewrite the save method ?
2012-07-17 21:27 <__efx__> I looked at pattern decorator technik but since I instantiate the object with Model.get and not as usual with a constructor
2012-07-17 22:38 <oscar> Do maybe somebody create report for .ods format?
2012-07-17 22:53 -!- rhubner(~rhubner@177.16.48.23) has left #tryton
2012-07-17 23:07 <oscar> Is it possible create .ods report from tryton likes .odt report?
2012-07-17 23:10 <cedk> oscar: I guess it must be possible
2012-07-17 23:11 <cedk> oscar: but I never tested, so fill an issue if it doesn't work
2012-07-17 23:12 <oscar> Ok, thanks I will try and test it

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