/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/Model/load.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/Model/load.py

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

revision 2657 by bh, Fri Jul 1 20:49:04 2005 UTC revision 2658 by jan, Wed Jul 27 21:50:30 2005 UTC
# Line 525  class SessionLoader(XMLReader): Line 525  class SessionLoader(XMLReader):
525          self.aLayer = None          self.aLayer = None
526    
527      def start_classification(self, name, qname, attrs):      def start_classification(self, name, qname, attrs):
528            # field and field_type are optional because the classification
529            # can also be empty, ie. have only a default.
530          attrs = self.check_attrs(name, attrs,          attrs = self.check_attrs(name, attrs,
531                                   [AttrDesc("field", True),                                   [AttrDesc("field", False),
532                                    AttrDesc("field_type", True)])                                    AttrDesc("field_type", False)])
533    
534          field = attrs["field"]          field = attrs["field"]
535          fieldType = attrs["field_type"]          fieldType = attrs["field_type"]
536    
537            if field == "": return # no need to set classification column.
538    
539          dbFieldType = self.aLayer.GetFieldType(field)          dbFieldType = self.aLayer.GetFieldType(field)
540    
541          if fieldType != dbFieldType:          if fieldType != dbFieldType:

Legend:
Removed from v.2657  
changed lines
  Added in v.2658

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26