From: <dg...@us...> - 2011-10-24 21:30:32
|
Revision: 909 http://pytrainer.svn.sourceforge.net/pytrainer/?rev=909&view=rev Author: dgranda Date: 2011-10-24 21:30:25 +0000 (Mon, 24 Oct 2011) Log Message: ----------- Fixed issue with unicode strings when adding new sport. Attention: getSportId method is already deprecated Modified Paths: -------------- pytrainer/trunk/pytrainer/record.py Modified: pytrainer/trunk/pytrainer/record.py =================================================================== --- pytrainer/trunk/pytrainer/record.py 2011-10-24 19:09:00 UTC (rev 908) +++ pytrainer/trunk/pytrainer/record.py 2011-10-24 21:30:25 UTC (rev 909) @@ -406,9 +406,9 @@ if sport is None: logging.debug("No sport with name: '%s'", str(sport_name)) if add is not None: - logging.debug("Adding sport '%s'", str(sport)) + logging.debug("Adding sport '%s'", str(sport_name)) new_sport = Sport() - new_sport.name = sport_name + new_sport.name = unicode(sport_name) sport = self._sport_service.store_sport(new_sport) return None if sport is None else sport.id This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |