bug fix: PLCAPI (e.g. DeletetPerson) delete an object and then call registry.remove...
authorAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Thu, 3 Sep 2009 10:03:41 +0000 (10:03 +0000)
committerAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Thu, 3 Sep 2009 10:03:41 +0000 (10:03 +0000)
sfa/methods/remove.py

index aabaadb..673047e 100644 (file)
@@ -43,6 +43,7 @@ class remove(Method):
         type = record['type']
         # TODO: sa, ma
         if type == "user":
+         if self.api.plshell.GetPersons(self.api.plauth, record.get_pointer()):
             self.api.plshell.DeletePerson(self.api.plauth, record.get_pointer())
         elif type == "slice":
             self.api.plshell.DeleteSlice(self.api.plauth, record.get_pointer())