from __future__ import absolute_import
-try :
- from builtins import object
+try :
+ from builtins import object
except : pass
class AU_MOINS_UN(object):
from __future__ import absolute_import
-try :
- from builtins import object
+try :
+ from builtins import object
except : pass
class AU_PLUS_UN(object):
from __future__ import print_function
from __future__ import absolute_import
try :
- from builtins import str
- from builtins import object
-except :
- pass
+ from builtins import str
+ from builtins import object
+except :
+ pass
class A_CLASSER(object):
from __future__ import absolute_import
-try :
- from builtins import object
+try :
+ from builtins import object
except : pass
class ENSEMBLE(object):
valid = self.validChild()
valid = valid * self.validRegles(cr)
if cr == 'oui' :
- if not hasattr(self,'cr') :
- from Noyau.N_CR import CR
- self.cr=CR()
- else :
- self.cr.purge()
+ if not hasattr(self,'cr') :
+ from Noyau.N_CR import CR
+ self.cr=CR()
+ else :
+ self.cr.purge()
if self.reste_val != {}:
if cr == 'oui':
self.cr.fatal(
from __future__ import absolute_import
-try :
- from builtins import object
+try :
+ from builtins import object
except : pass
class EXCLUS(object):
# Modules Python
from __future__ import absolute_import
try :
- from builtins import str
- from builtins import object
+ from builtins import str
+ from builtins import object
except : pass
import os
# Modules Python
from __future__ import print_function
from __future__ import absolute_import
-try :
- from builtins import object
+try :
+ from builtins import object
except : pass
import traceback
# Modules Python
from __future__ import absolute_import
try :
- from builtins import str
- from builtins import object
+ from builtins import str
+ from builtins import object
except : pass
import traceback
# Ajout PN
# Pour tenir compte des Tuples
if hasattr(self.definition.type[0],'ntuple') :
- try :
- if (not (type(lval[0]) is tuple)) and (not (type(lval[0]) is list)) : lval=(lval,)
- except :
- pass
+ try :
+ if (not (type(lval[0]) is tuple)) and (not (type(lval[0]) is list)) : lval=(lval,)
+ except :
+ pass
if lval is None:
valid = 0
if cr == 'oui':
typeProto = self.typeProto
intoProto = self.intoProto
cardProto = self.cardProto
- if self.definition.filtre != None:
- listePossibles=self.getUserAssdPossible()
- self.intoProto = IntoProtocol(
- "into", into=listePossibles, val_min=self.definition.val_min, val_max=self.definition.val_max)
- intoProto = self.intoProto
+ if self.definition.filtre != None:
+ listePossibles=self.getUserAssdPossible()
+ self.intoProto = IntoProtocol(
+ "into", into=listePossibles, val_min=self.definition.val_min, val_max=self.definition.val_max)
+ intoProto = self.intoProto
if cr == 'oui':
# un cr est demande : on collecte tous les types d'erreur
try:
from __future__ import absolute_import
-try :
- from builtins import object
+try :
+ from builtins import object
except : pass
class MEME_NOMBRE(object):
from __future__ import absolute_import
try :
- from builtins import object
+ from builtins import object
except : pass
class PRESENT_ABSENT(object):
from __future__ import absolute_import
-try :
- from builtins import object
+try :
+ from builtins import object
except : pass
class PRESENT_PRESENT(object):
valid = self.validChild()
valid = valid * self.validRegles(cr)
if self.reste_val != {}:
- if not hasattr(self,'cr') :
- from Noyau.N_CR import CR
- self.cr=CR()
+ if not hasattr(self,'cr') :
+ from Noyau.N_CR import CR
+ self.cr=CR()
if cr == 'oui':
self.cr.fatal(
tr("unknown keywords : %s") % ','.join(list(self.reste_val.keys())))
from __future__ import absolute_import
-try :
- from builtins import object
+try :
+ from builtins import object
except : pass
class UN_PARMI(object):
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
"""
- Ce package contient la fonctionnalité de validation des objets de type OBJECT.
+ Ce package contient la fonctionnalité de validation des objets de type OBJECT.
Cette fonctionnalité est implémentée sous la forme de classes de type MIXIN qui
- doivent etre combinées aux classes de bases de Noyau par héritage multiple dans
+ doivent etre combinées aux classes de bases de Noyau par héritage multiple dans
un troisième package, en général, Accas.
"""