IRC logs of #tryton for Saturday, 2010-11-13 #tryton log beginning Sat Nov 13 00:00:01 CET 2010
2010-11-13 00:57 -!- ikks(~ikks@ has joined #tryton
2010-11-13 01:12 -!- chrue1( has joined #tryton
2010-11-13 01:20 -!- tony_(~tony@ has joined #tryton
2010-11-13 03:12 -!- tony_(~tony@ has joined #tryton
2010-11-13 03:26 -!- tony_(~tony@ has joined #tryton
2010-11-13 05:16 -!- corden( has joined #tryton
2010-11-13 05:18 -!- yangoon( has joined #tryton
2010-11-13 06:54 -!- tony_(~tony@ has joined #tryton
2010-11-13 09:19 -!- trifon( has joined #tryton
2010-11-13 11:23 -!- sharoon(~sharoon@ has joined #tryton
2010-11-13 11:24 <sharoon> hi, when we use _history=True and have functional fields writing to the same table we will get multiple history records for a create itself
2010-11-13 11:24 <sharoon> is there a way to avoid this?
2010-11-13 11:43 <Timitos> sharoon: i think this is the actual behavior of the framework. i think it will be a bigger effort to change this.
2010-11-13 11:43 <sharoon> Timitos: might be better to filter in the select query for history right?
2010-11-13 11:45 <Timitos> sharoon: yes, maybe. but i do not know if it is possible to filter those records.
2010-11-13 12:22 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-11-13 12:37 -!- ikks(~ikks@ has joined #tryton
2010-11-13 14:22 -!- heg( has joined #tryton
2010-11-13 16:01 <sharkcz> cedk: question about logging in trytond - even with logfile set on command line it writes the log entries to both the console and the logfile, seems it's related to the logging.basicConfig() in, in my opinion it should write to the logfile only
2010-11-13 16:20 <cedk> sharkcz: I think about dropping completly the logging system
2010-11-13 16:32 <cedk> sharkcz: I find the python logging module bloated and not realy functional
2010-11-13 16:33 <cedk> sharkcz: I guess it is related to the fedora issue?
2010-11-13 16:33 <cedk> sharkcz: you can simply redirect the stdout to /dev/null
2010-11-13 16:34 <sharkcz> cedk: yes, it's
2010-11-13 16:35 <sharkcz> I was thinking about something cleaner than the /dev/null redirect, but it will work too
2010-11-13 16:35 <sharkcz> so you would use simple "prints" instead of the logging module?
2010-11-13 16:55 <cedk> sharkcz: I don't know yet
2010-11-13 16:56 <sharkcz> cedk: ok, it's no problem in a distro to capture stdout/stderr and take care of rotation the logs etc.
2010-11-13 16:58 <cedk> sharkcz: by the way, I remember that this behavior depends of the version of logging module
2010-11-13 17:05 <cedk> sharkcz: are you working on tryton module packages?
2010-11-13 17:12 <sharkcz> cedk: tomorrow I will spend some time on the modules for 1.8
2010-11-13 17:37 <cedk> sharkcz: great then we could add a link on the website
2010-11-13 18:15 <yangoon> cedk: if logging of trytond would be changed to something else than TimedRotatingFileHandler it would me also make happy for debian
2010-11-13 18:16 <yangoon> because it can't be overriden and can interfere in worst case with someother logrotate
2010-11-13 18:18 <cedk> yangoon: we should discuss for the best solution
2010-11-13 18:21 -!- ecarreras(~under@unaffiliated/ecarreras) has joined #tryton
2010-11-13 18:25 -!- bechamel( has joined #tryton
2010-11-13 18:27 <lem0na> cedr: about upgrade in gentoo - is upgrade of modules, server and client and restart the server enought?
2010-11-13 18:28 <yangoon> lem0na: no, you must update the database
2010-11-13 18:28 <cedk> lem0na:
2010-11-13 18:29 <lem0na> cedr: thanx - i was looking in the wiki but did not find the article
2010-11-13 18:30 -!- bechamel( has left #tryton
2010-11-13 18:30 -!- bechamel( has joined #tryton
2010-11-13 19:21 <sharoon> Hi I would like to build an automatic currency exchange rate updater
2010-11-13 19:21 <sharoon> probably based on the ECB feed in XML
2010-11-13 19:21 <sharoon> any suggestions how this can be modelled?
2010-11-13 19:30 <udono> sharoon: maybe a configuration view where to input the needed currencies. And a scheduler entry, which will update the exchange rate daily...
2010-11-13 19:30 <sharoon> udono: my doubt is about how to consider the ratio based on a base currency
2010-11-13 19:39 <yangoon> sharoon: I wanted to do something in this direction, too
2010-11-13 19:39 <sharoon> yangoon: great, did u make any progress on that?
2010-11-13 19:40 <yangoon> and as a frist point wondered if daily resolution on rates is enough
2010-11-13 19:40 <yangoon> I think it should be datetime
2010-11-13 19:41 <sharoon> yangoon: at the moment the highest resolution can be date only
2010-11-13 19:41 <yangoon> looking at they say that update is at 3 p.m.
2010-11-13 19:41 <yangoon> so we have at least two rates per day
2010-11-13 19:41 <sharoon> yangoon: the xml is here
2010-11-13 19:44 <sharoon> yangoon: so with the current situation best would e to use the rate as that of some time in a day?
2010-11-13 19:45 <yangoon> sharoon: the current solution says, that rate is from 00:00 til 23:59 according to the server time
2010-11-13 19:45 <udono> sharoon: the xml is limited to use in europe
2010-11-13 19:46 <sharoon> udono: yes
2010-11-13 19:46 <yangoon> which is not exact and probably will only meet simple setups
2010-11-13 19:47 <yangoon> if I imagine setups with multiple companies lets say in Europe ans in Asia this could be too simple
2010-11-13 19:48 <yangoon> another point is that from udono: which reference to take?
2010-11-13 19:49 <sharoon> yangoon: udono: then we might have to depend on something like the yahoo api?
2010-11-13 19:49 <sharoon> yangoon: udono : it talks all currencies\
2010-11-13 19:49 <udono> sharoon: or google...
2010-11-13 19:50 <yangoon> sharoon: udono I wouldn't want to rely for that on an unofficial source
2010-11-13 19:50 <sharoon>
2010-11-13 19:53 <yangoon> sharoon: perhaps you can tell me from if they also provide an interface for rates?;)
2010-11-13 19:53 <yangoon> I cannot read thai
2010-11-13 19:54 <yangoon> but I am too dumb to click english language
2010-11-13 19:57 <sharoon> yangoon: i dont read thai either ;)
2010-11-13 19:58 <yangoon> considering the thai bat at and they are different
2010-11-13 19:59 <udono> so it seems the provided rates are depending on the bank?
2010-11-13 19:59 -!- trifon( has joined #tryton
2010-11-13 20:04 <yangoon> the subject seems to be strongly dependent from the expected usage
2010-11-13 20:05 <yangoon> for the calculation of the ECB see the footer
2010-11-13 20:05 <yangoon> they provide the 'mid-rate'
2010-11-13 20:06 <udono> but afaik the own bank add some fees into the exchangerate
2010-11-13 20:06 <yangoon> it can serve as an orientation, but could not reflect the reality of your purchases/sales
2010-11-13 20:08 <sharoon> yangoon: udono: yes
2010-11-13 20:09 <yangoon> my conclusion from that is: using as the base could be good for an european enterprise
2010-11-13 20:11 <yangoon> if an enterprise should need more sophisticated rates for buying/selling this would make chnages necessary in several parts (currency, sale, purchase, invoice)
2010-11-13 20:18 <udono> ACTION afk
2010-11-13 21:02 -!- gordon_geeko( has joined #tryton
2010-11-13 21:42 <lem0na> the 3 p.m. rate is for the next year
2010-11-13 21:43 <lem0na> 4-5 years ago i did this with perl screen scraper
2010-11-13 21:43 <lem0na> s/year/day
2010-11-13 21:44 <lem0na> here i Bulgaria this rates are used by the Central Bank
2010-11-13 21:44 <lem0na> avery other bank has they own rates
2010-11-13 21:47 <cedk> The One2One patch is ready
2010-11-13 21:47 <cedk> Thx for testing
2010-11-13 22:17 -!- pepeu(~manuel@ has joined #tryton
2010-11-13 22:25 <cedk> udono: did you test the last patch on proteus?
2010-11-13 22:53 -!- ikks(~ikks@ has joined #tryton
2010-11-13 23:17 -!- yangoon_rm( has joined #tryton

Generated by 2.17.3 by Marius Gedminas - find it at!