objdictgen/subindextable.py
changeset 266 8678a3cf7fe7
parent 254 f2b0acb54e65
child 269 f0ed853bace7
equal deleted inserted replaced
265:36cc4c87cdaa 266:8678a3cf7fe7
    89     def GetRowLabelValues(self, row):
    89     def GetRowLabelValues(self, row):
    90         return row
    90         return row
    91 
    91 
    92     def GetValue(self, row, col):
    92     def GetValue(self, row, col):
    93         if row < self.GetNumberRows():
    93         if row < self.GetNumberRows():
    94             value = self.data[row].get(self.GetColLabelValue(col), "")
    94             return str(self.data[row].get(self.GetColLabelValue(col), ""))
    95             if (type(value) == UnicodeType):
    95             
    96                 return value
       
    97             else: 
       
    98                 return str(value)
       
    99     
       
   100     def GetEditor(self, row, col):
    96     def GetEditor(self, row, col):
   101         if row < self.GetNumberRows():
    97         if row < self.GetNumberRows():
   102             return self.editors[row].get(self.GetColLabelValue(col), "")
    98             return self.editors[row].get(self.GetColLabelValue(col), "")
   103     
    99     
   104     def GetValueByName(self, row, colname):
   100     def GetValueByName(self, row, colname):