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: |
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) |