/[thuban]/trunk/thuban/Thuban/UI/classifier.py
ViewVC logotype

Diff of /trunk/thuban/Thuban/UI/classifier.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 441 by jonathan, Thu Feb 27 15:55:00 2003 UTC revision 444 by jonathan, Thu Feb 27 16:02:59 2003 UTC
# Line 190  class ClassTable(wxPyGridTableBase): Line 190  class ClassTable(wxPyGridTableBase):
190          # function.          # function.
191          #          #
192          try:          try:
193              return (Str2Num(value))              return (Str2Num(value),)
194          except:          except:
195              i = value.find('-')              i = value.find('-')
196              if i == 0:              if i == 0:
# Line 217  class ClassTable(wxPyGridTableBase): Line 217  class ClassTable(wxPyGridTableBase):
217                          # bad input, ignore the request                          # bad input, ignore the request
218                      else:                      else:
219    
220                            ndata = data
221                          if len(dataInfo) == 1:                          if len(dataInfo) == 1:
222                              if not isinstance(data, ClassGroupSingleton):                              if not isinstance(data, ClassGroupSingleton):
223                                  ndata = ClassGroupSingleton(prop = data)                                  ndata = ClassGroupSingleton(prop = data)
224                              ndata.SetValue(dataInfo[1])                              ndata.SetValue(dataInfo[0])
225                          elif len(dataInfo) == 2:                          elif len(dataInfo) == 2:
226                              if not isinstance(data, ClassGroupRange):                              if not isinstance(data, ClassGroupRange):
227                                  data = ClassDataRange(classData = data)                                  data = ClassDataRange(classData = data)
228                              data.SetRange(dataInfo[1], dataInfo[2])                              data.SetRange(dataInfo[0], dataInfo[1])
229    
230                          ndata.SetLabel(data.GetLabel())                          ndata.SetLabel(data.GetLabel())
231                          self.__SetRow(row, ndata)                          self.__SetRow(row, ndata)

Legend:
Removed from v.441  
changed lines
  Added in v.444

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26