bug fix in upcall
authorAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Thu, 3 Sep 2009 10:56:38 +0000 (10:56 +0000)
committerAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Thu, 3 Sep 2009 10:56:38 +0000 (10:56 +0000)
sfa/methods/remove.py

index 673047e..3090fef 100644 (file)
@@ -46,6 +46,7 @@ class remove(Method):
          if self.api.plshell.GetPersons(self.api.plauth, record.get_pointer()):
             self.api.plshell.DeletePerson(self.api.plauth, record.get_pointer())
         elif type == "slice":
+         if self.api.plshell.GetSlices(self.api.plauth, record.get_pointer()):
             self.api.plshell.DeleteSlice(self.api.plauth, record.get_pointer())
         elif type == "node":
             self.api.plshell.DeleteNode(self.api.plauth, record.get_pointer())