Hi,

David García Granda schrieb am 03.11.2011 10:28:
> I have experienced some strange behavior with record view: I don't
> have any specific clickpath, but I got the impression some times it
> get stuck.

even more ;)

wenn entering a duration as 1h 20min 0s this value later gets rendered
as 1:19:60
(won't happen always eg 1:30:00 is displayed correctly)

Quick look to the code is hard, cause there are so many transformations
& conversions. And they do sit everywhere (records, GUI, DB I/O,...)

Long time ago (when I was more active :/ I once suggested to think about
defining own classes for our main physical values:

So duration (or time) would have a 'base' value in seconds (always SI
units of course). Example above
mytime = 4800.0
the class itself then offers all needed input & output methods etc.
Especially on-the-fly class properties would be very handy to represent
the value in different formats like strings "1h 20min 0s" or "1:20:00"
or lists (1, 20, 0.0)

Unit conversion could be integrated (just a special representation).
Pace could become combined with speed (also just a special representation)

There are probably other good (or even better) ways to tidy up our mess
- let's discuss :)

cu
Arnd

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Pytrainer-devel mailing list
Pytrainer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytrainer-devel

Reply via email to