From: ribes Date: Wed, 10 Feb 2010 15:50:55 +0000 (+0000) Subject: - Module name cannot have a caracter - X-Git-Tag: V5_1_4a1~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1f2342e4bdc934e9eca4d247fcb4613586101296;p=tools%2Fyacsgen.git - Module name cannot have a caracter - --- diff --git a/module_generator/gener.py b/module_generator/gener.py index fff324a..7f39254 100644 --- a/module_generator/gener.py +++ b/module_generator/gener.py @@ -89,6 +89,9 @@ class Module(object): raise SystemExit def validate(self): + # Test Module name, canot have a "-" in the name + if self.name.find("-") != -1: + raise Invalid("Module name %s is not valid, remove caracter - in the module name" % self.name) lcompo = set() for compo in self.components: if compo.name in lcompo: