]> SALOME platform Git repositories - tools/eficas.git/blobdiff - Noyau/N_VALIDATOR.py
Salome HOME
gestion des listes et label sur 2
[tools/eficas.git] / Noyau / N_VALIDATOR.py
index b4dd763a9b13230f91bb44f949241ddc81fab0a9..7114615f810802a389d8f471de4f1c3bafe33cd5 100644 (file)
@@ -1034,6 +1034,7 @@ class AndVal(Valid):
 
     def info_erreur_liste(self):
         a = 1
+        chaine=""
         for v in self.validators:
             if v.info_erreur_liste() != " ":
                 if a == 1:
@@ -1702,7 +1703,11 @@ class FileExtVal(RegExpVal):
         self.ext = ext
         self.errormsg = u'"%%(value)s" n\'est pas un nom de fichier %(ext)s valide' % {
             "ext": ext}
-        RegExpVal.__init__(self, "^[\w\-]+\.%s$" % self.ext)
+        #RegExpVal.__init__(self, "^[\w\-]+\.%s$" % self.ext)
+        #PNPN Modif pour Adao
+        #RegExpVal.__init__(self, "^[\S]+\.%s$" % self.ext
+        RegExpVal.__init__(self, "^\S+\.%s$" % self.ext)
+
 
     def info(self):
         return u'Un nom de fichier se terminant par ".%s" est attendu.' % self.ext