equal
deleted
inserted
replaced
72 if row < self.GetNumberRows(): |
72 if row < self.GetNumberRows(): |
73 if col == 0: |
73 if col == 0: |
74 return row + 1 |
74 return row + 1 |
75 colname = self.GetColLabelValue(col, False) |
75 colname = self.GetColLabelValue(col, False) |
76 value = self.data[row].get(colname, "") |
76 value = self.data[row].get(colname, "") |
|
77 |
77 if colname == "Type" and isinstance(value, TupleType): |
78 if colname == "Type" and isinstance(value, TupleType): |
78 if value[0] == "array": |
79 if value[0] == "array": |
79 return "ARRAY [%s] OF %s" % (",".join(map(lambda x : "..".join(x), value[2])), value[1]) |
80 return "ARRAY [%s] OF %s" % (",".join(map(lambda x : "..".join(x), value[2])), value[1]) |
80 return str(value) |
81 return value |
81 |
82 |
82 def SetValue(self, row, col, value): |
83 def SetValue(self, row, col, value): |
83 if col < len(self.colnames): |
84 if col < len(self.colnames): |
84 colname = self.GetColLabelValue(col, False) |
85 colname = self.GetColLabelValue(col, False) |
85 if colname == "Name": |
86 if colname == "Name": |