Salome HOME
chgt date copyright
[tools/eficas.git] / Ihm / I_MCCOMPO.py
index f61bf61c521519e52b653f13a4342b8058772332..a071c8ebef4bceba1ee09577ce1e98e727e7076b 100644 (file)
@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-# Copyright (C) 2007-2013   EDF R&D
+# Copyright (C) 2007-2017   EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -273,7 +273,8 @@ class MCCOMPO(I_OBJECT.OBJECT):
         return 1
       else :
         return 0
-    elif type(fils) == types.InstanceType:
+    #elif type(fils) == types.InstanceType:
+    elif isinstance(fils,object):
       # fils est un objet (commande,mcf,mclist)
       # on est dans le cas d'une tentative de copie de l'objet
       # on veut savoir si l'objet peut bien etre un fils de self :