From: <aza...@us...> - 2010-11-14 13:36:48
|
Revision: 710 http://pytrainer.svn.sourceforge.net/pytrainer/?rev=710&view=rev Author: azapletal Date: 2010-11-14 13:36:37 +0000 (Sun, 14 Nov 2010) Log Message: ----------- Reverted uc usage in windowrecord. Needs better handling of empty/None values. Modified Paths: -------------- pytrainer/trunk/pytrainer/gui/windowrecord.py Modified: pytrainer/trunk/pytrainer/gui/windowrecord.py =================================================================== --- pytrainer/trunk/pytrainer/gui/windowrecord.py 2010-11-14 11:13:26 UTC (rev 709) +++ pytrainer/trunk/pytrainer/gui/windowrecord.py 2010-11-14 13:36:37 UTC (rev 710) @@ -256,25 +256,18 @@ trackSummary = {} list_options["rcd_date"] = self.rcd_date.get_text() list_options["rcd_sport"] = self.rcd_sport.get_active_text() - list_options["rcd_distance"] = self.uc.usr2sys('distance', self.rcd_distance.get_text()) + list_options["rcd_distance"] = self.rcd_distance.get_text() list_options["rcd_beats"] = self.rcd_beats.get_text() - list_options["rcd_average"] = self.uc.usr2sys('speed', self.rcd_average.get_text()) + list_options["rcd_average"] = self.rcd_average.get_text() list_options["rcd_calories"] = self.rcd_calories.get_text() list_options["rcd_title"] = self.rcd_title.get_text().replace("\"","'") list_options["rcd_gpxfile"] = self.rcd_gpxfile.get_text() - list_options["rcd_upositive"] = self.uc.usr2sys('height', self.rcd_upositive.get_text()) - list_options["rcd_unegative"] = self.uc.usr2sys('height', self.rcd_unegative.get_text()) + list_options["rcd_upositive"] = self.rcd_upositive.get_text() + list_options["rcd_unegative"] = self.rcd_unegative.get_text() list_options["rcd_maxbeats"] = self.rcd_maxbeats.get_text() - - # tricky for uc as rcd_pace is in min:sec - _p1 = self.parent.pace_to_float(self.rcd_pace.get_text()) - _p2 = self.parent.pace_from_float(self.uc.pace(_p1)) - list_options["rcd_pace"] = _p2 #self.rcd_pace.get_text() - _p1 = self.parent.pace_to_float(self.rcd_maxpace.get_text()) - _p2 = self.parent.pace_from_float(self.uc.pace(_p1)) - list_options["rcd_maxpace"] = _p2#self.rcd_maxpace.get_text() - - list_options["rcd_maxvel"] = self.uc.usr2sys('speed', self.rcd_maxvel.get_text()) + list_options["rcd_pace"] = self.rcd_pace.get_text() + list_options["rcd_maxpace"] = self.rcd_maxpace.get_text() + list_options["rcd_maxvel"] = self.rcd_maxvel.get_text() list_options["rcd_time"] = [self.rcd_hour.get_value_as_int(),self.rcd_min.get_value_as_int(),self.rcd_second.get_value_as_int()] buffer = self.rcd_comments.get_buffer() start,end = buffer.get_bounds() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |