Changeset 117
- Timestamp:
- 10/18/07 21:27:11 (1 year ago)
- Files:
-
- pytrainer/trunk/pytrainer/gui/windowrecord.py (modified) (2 diffs)
- pytrainer/trunk/pytrainer/lib/mysqlUtils.py (modified) (1 diff)
- pytrainer/trunk/pytrainer/lib/sqliteUtils.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
pytrainer/trunk/pytrainer/gui/windowrecord.py
r96 r117 74 74 for i in self.conf_options: 75 75 var = getattr(self,i) 76 if i != "rcd_sport" and i != "rcd_comments": 76 if i == "rcd_title": 77 list_options[i] = var.get_text().replace("\"","'") 78 elif i != "rcd_sport" and i != "rcd_comments": 77 79 list_options[i] = var.get_text() 78 80 elif i == "rcd_sport": … … 82 84 start,end = buffer.get_bounds() 83 85 list_options[i] = buffer.get_text(start,end, True) 86 list_options[i] = list_options[i].replace("\"","'") 84 87 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()] 85 88 if self.mode == "newrecord": pytrainer/trunk/pytrainer/lib/mysqlUtils.py
r98 r117 153 153 if count>0: 154 154 string+="," 155 string += """%s= '%s'""" %(cells[count],values[count])155 string += """%s="%s" """ %(cells[count],values[count]) 156 156 count = count+1 157 157 pytrainer/trunk/pytrainer/lib/sqliteUtils.py
r98 r117 145 145 if count>0: 146 146 string+="," 147 string += """%s= '%s'""" %(cells[count],values[count])147 string += """%s="%s" """ %(cells[count],values[count]) 148 148 count = count+1 149 149
