/[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 834 by jonathan, Mon May 5 15:04:21 2003 UTC revision 835 by bh, Tue May 6 15:52:41 2003 UTC
# Line 705  class Classifier(NonModalDialog): Line 705  class Classifier(NonModalDialog):
705          #          #
706          self.fields = wxChoice(panel, ID_PROPERTY_SELECT,)          self.fields = wxChoice(panel, ID_PROPERTY_SELECT,)
707    
708          self.num_cols = layer.table.field_count()          self.num_cols = layer.table.NumColumns()
709          # just assume the first field in case one hasn't been          # just assume the first field in case one hasn't been
710          # specified in the file.          # specified in the file.
711          self.__cur_field = 0          self.__cur_field = 0
# Line 718  class Classifier(NonModalDialog): Line 718  class Classifier(NonModalDialog):
718              self.fields.SetClientData(0, None)              self.fields.SetClientData(0, None)
719    
720          for i in range(self.num_cols):          for i in range(self.num_cols):
721              type, name, len, decc = layer.table.field_info(i)              name = layer.table.Column(i).name
722              self.fields.Append(name)              self.fields.Append(name)
723    
724              if name == field:              if name == field:

Legend:
Removed from v.834  
changed lines
  Added in v.835

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26