From: Pascale Noyret Date: Thu, 15 Nov 2007 10:51:38 +0000 (+0000) Subject: Retour version precedente X-Git-Tag: V1_13b1~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1bd75b30a1e73a3f5fe016132de47bb48fc17603;p=tools%2Feficas.git Retour version precedente --- diff --git a/Noyau/N_GEOM.py b/Noyau/N_GEOM.py index 0fc610d7..44d5a4f9 100644 --- a/Noyau/N_GEOM.py +++ b/Noyau/N_GEOM.py @@ -56,7 +56,9 @@ class GEOM(ASSD): return self.nom def __convert__(cls,valeur): - return valeur + if isinstance(valeur, (str,unicode)): + return valeur + raise ValueError, 'On attend un chaine de caractères' __convert__=classmethod(__convert__) class geom(GEOM):pass