Changeset 117

Show
Ignore:
Timestamp:
10/18/07 21:27:11 (1 year ago)
Author:
vud1
Message:

"Close #39"

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • pytrainer/trunk/pytrainer/gui/windowrecord.py

    r96 r117  
    7474                for i in self.conf_options: 
    7575                        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": 
    7779                                list_options[i] = var.get_text() 
    7880                        elif i == "rcd_sport": 
     
    8284                                start,end = buffer.get_bounds() 
    8385                                list_options[i] = buffer.get_text(start,end, True) 
     86                                list_options[i] = list_options[i].replace("\"","'") 
    8487                        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()] 
    8588                if self.mode == "newrecord":  
  • pytrainer/trunk/pytrainer/lib/mysqlUtils.py

    r98 r117  
    153153                        if count>0: 
    154154                                string+="," 
    155                         string += """%s='%s'""" %(cells[count],values[count]) 
     155                        string += """%s="%s" """ %(cells[count],values[count]) 
    156156                        count = count+1 
    157157 
  • pytrainer/trunk/pytrainer/lib/sqliteUtils.py

    r98 r117  
    145145                        if count>0: 
    146146                                string+="," 
    147                         string += """%s='%s'""" %(cells[count],values[count]) 
     147                        string += """%s="%s" """ %(cells[count],values[count]) 
    148148                        count = count+1 
    149149