From 0285ccc035a190759138aded8a69422cd8d5f838 Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Thu, 14 Jun 2007 10:07:20 +0000 Subject: [PATCH] =?utf8?q?modif=20pour=20anomalie=20si=20nom=20de=20la=20s?= =?utf8?q?tring=20d=C3=A9j=C3=A0=20existant=20(anomalie=20d=C3=A9tect?= =?utf8?q?=C3=A9e=20par=20deltaCad)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Noyau/N_GEOM.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Noyau/N_GEOM.py b/Noyau/N_GEOM.py index 0fc610d7..fbff4093 100644 --- a/Noyau/N_GEOM.py +++ b/Noyau/N_GEOM.py @@ -56,6 +56,15 @@ class GEOM(ASSD): return self.nom def __convert__(cls,valeur): + if isinstance(valeur,str) : + # valeur doit etre une string + return valeur + raise ValError("Un geom doit ĂȘtre une string") + + + + + return valeur __convert__=classmethod(__convert__) -- 2.39.2