/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/tableview.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/UI/tableview.py

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

revision 2734 by bramz, Thu Mar 1 12:42:59 2007 UTC revision 2755 by dpinte, Thu Apr 12 09:21:58 2007 UTC
# Line 77  class DataTable(grid.PyGridTableBase): Line 77  class DataTable(grid.PyGridTableBase):
77              record = dict()              record = dict()
78              for (key, val) in self.table.ReadRowAsDict(row, \              for (key, val) in self.table.ReadRowAsDict(row, \
79                                row_is_ordinal = 1).items():                                row_is_ordinal = 1).items():
80                  if isinstance(val, str):                  record[key] = val
                     record[key] = val.decode('iso-8859-1')  
                 else:  
                     record[key] = val  
81          return record[self.columns[col][0]]          return record[self.columns[col][0]]
82    
83      def SetValue(self, row, col, value):      def SetValue(self, row, col, value):

Legend:
Removed from v.2734  
changed lines
  Added in v.2755

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26