From 1bd75b30a1e73a3f5fe016132de47bb48fc17603 Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Thu, 15 Nov 2007 10:51:38 +0000 Subject: [PATCH] Retour version precedente --- Noyau/N_GEOM.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.2