/[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 613 by jonathan, Mon Apr 7 08:55:55 2003 UTC revision 627 by jonathan, Wed Apr 9 10:08:47 2003 UTC
# Line 73  class Classification: Line 73  class Classification:
73      def __deepcopy__(self, memo):      def __deepcopy__(self, memo):
74          clazz = Classification()          clazz = Classification()
75    
76            # note: the only thing that isn't copied is the layer reference
77            clazz.field = self.field
78            clazz.fieldType = self.fieldType
79          clazz.__groups[0] = copy.deepcopy(self.__groups[0])          clazz.__groups[0] = copy.deepcopy(self.__groups[0])
80    
81          for i in range(1, len(self.__groups)):          for i in range(1, len(self.__groups)):
82              clazz.__groups.append(copy.deepcopy(self.__groups[i]))              clazz.__groups.append(copy.deepcopy(self.__groups[i]))
83    
         print "Classification.__deepcopy__"  
84          return clazz          return clazz
85    
86      def __SendNotification(self):      def __SendNotification(self):

Legend:
Removed from v.613  
changed lines
  Added in v.627

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26