equal
deleted
inserted
replaced
499 # Call the OnCloseMethod |
499 # Call the OnCloseMethod |
500 CTNInstance.OnCTNClose() |
500 CTNInstance.OnCTNClose() |
501 # Delete confnode dir |
501 # Delete confnode dir |
502 try: |
502 try: |
503 shutil.rmtree(CTNInstance.CTNPath()) |
503 shutil.rmtree(CTNInstance.CTNPath()) |
504 except: |
504 except Exception: |
505 pass |
505 pass |
506 # Remove child of Children |
506 # Remove child of Children |
507 self.Children[CTNInstance.CTNType].remove(CTNInstance) |
507 self.Children[CTNInstance.CTNType].remove(CTNInstance) |
508 if len(self.Children[CTNInstance.CTNType]) == 0: |
508 if len(self.Children[CTNInstance.CTNType]) == 0: |
509 self.Children.pop(CTNInstance.CTNType) |
509 self.Children.pop(CTNInstance.CTNType) |