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

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

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

revision 688 by jonathan, Tue Apr 15 21:54:32 2003 UTC revision 689 by jonathan, Wed Apr 16 13:47:07 2003 UTC
# Line 588  class ClassGroup: Line 588  class ClassGroup:
588          return not self.__eq__(other)          return not self.__eq__(other)
589    
590      def __repr__(self):      def __repr__(self):
591          return "'" + self.label + "', " + repr(self.GetProperties())          return repr(self.label) + ", " + repr(self.GetProperties())
592            
593  class ClassGroupSingleton(ClassGroup):  class ClassGroupSingleton(ClassGroup):
594      """A Group that is associated with a single value."""      """A Group that is associated with a single value."""
# Line 643  class ClassGroupSingleton(ClassGroup): Line 643  class ClassGroupSingleton(ClassGroup):
643              and self.__value == other.__value              and self.__value == other.__value
644    
645      def __repr__(self):      def __repr__(self):
646          return "(" + self.__value + ", " + ClassGroup.__repr__(self) + ")"          return "(" + repr(self.__value) + ", " + ClassGroup.__repr__(self) + ")"
647    
648  class ClassGroupDefault(ClassGroup):  class ClassGroupDefault(ClassGroup):
649      """The default Group. When values do not match any other      """The default Group. When values do not match any other
# Line 787  class ClassGroupRange(ClassGroup): Line 787  class ClassGroupRange(ClassGroup):
787              and self.__max == other.__max              and self.__max == other.__max
788    
789      def __repr__(self):      def __repr__(self):
790          return "(" + str(self.__min) + ", " + str(self.__max) + ", " + \          return "(" + repr(self.__min) + ", " + repr(self.__max) + ", " + \
791                 ClassGroup.__repr__(self) + ")"                 ClassGroup.__repr__(self) + ")"
792    
793  class ClassGroupMap(ClassGroup):  class ClassGroupMap(ClassGroup):

Legend:
Removed from v.688  
changed lines
  Added in v.689

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26