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): |